Home › Forums › Bee WordPress Theme › Website description does not show up
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by
inoxcity.
-
AuthorPosts
-
March 23, 2015 at 12:16 pm #6791
inoxcity
ParticipantHi, my website is based on bee theme – http://inoxcity.co.uk
The problem that I have is that the tagline shows up as part of the Site Title which means my description is left empty. I’ve tried multiple tools but they all see my Title as Title + Tagline and they show sites description as not existent. Example: http://i.imgur.com/ziP1nZb.png
I’ve tried editing description through plugin SEO All in the One Pack but the problem remains. The preview snippet is also showing my description as black even though the text is there.
The code:
<head> <title><?php wp_title( '|', true, 'right' ); ?></title> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">Thanks for the answers
March 24, 2015 at 1:31 am #6801Hi, please find the functions/functions.php, line 48-65:
there is title function:function ux_custom_title( $title, $sep ) { ... }You could edit the code as you want
Best, Bwsm
March 24, 2015 at 9:09 am #6806inoxcity
ParticipantCould you tell me exactly what I have to change to make my description work? Unfortunately, I have little understanding of the coding. Or should I seek proffesional help?
Function:
function ux_custom_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; $title .= get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'ux' ), max( $paged, $page ) ); return $title; } add_filter('wp_title','ux_custom_title',10, 2 );March 24, 2015 at 12:19 pm #6807The page title works by the rule(in the funtion):
– in fontpage: Site Title + Tagline
– in other pages/posts: Article title + Site TitleDid you want to all pages/post to be shown Tagline?
March 24, 2015 at 12:41 pm #6809inoxcity
ParticipantThe issue is not with the way page title is shown.
The websites description (aka tagline or meta description) is not being found by the search engines or SEO tools. Instead, Site Title + Tagline is perceived as the Site Title while the meta description or Tagline is held as non-existent.
I don’t know whether the problem lies in this function or the way the header is programmed but my meta description has to be seen by the search engines.March 24, 2015 at 12:42 pm #6810inoxcity
ParticipantBTW my website’s server is currently experiencing DDoS attack. Hopefully it will end soon.
March 25, 2015 at 2:27 am #6815Please use “WordPress SEO by Yoast” plugin. You could set title/page : https://www.dropbox.com/s/rgdox4rv8fcloxy/QQ20150325-4.jpg?dl=0
March 25, 2015 at 8:09 am #6816inoxcity
ParticipantIt helped. Thanks a lot!
-
AuthorPosts
- You must be logged in to reply to this topic.
