Viewing 10 replies - 16 through 25 (of 25 total)
  • @ Cipri:

    Your header.php file should contain something like this:

    }?>
    <title><?php wp_title(”); ?></title>
    </head>

    Inbetween <title> and </title> you should have <?php wp_title(”); ?> and nothing else for the plugin to work corectly.

    My theme’s header.php does not have that string but a more complicated string indeed…what should I do?

    Thread Starter M

    (@infolegal)

    zimbrul, your theme probably has some conditional titles, like if_is_home show a title, if_single something else.

    But in the end, for the theme titles to work with WordPress SEO they must be as simple as possible. Try pasting here the code from your theme, most likely you will get an answer.

    Hi M, here is the code that relates to the <title> tag in header.php

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter M

    (@infolegal)

    Try replacing this:

    <title>
    <?php if(is_home() ) { bloginfo('name'); ?> | <?php bloginfo('description'); } ?>
    <?php if(is_single() || is_page() || is_archive() || is_tag() || is_category() ) { wp_title('',true); ?> | <?php bloginfo('name'); } ?>
    <?php if(is_404()) { ?> <?php _e('404 Error! Page Not Found','WpAdvNewspaper'); ?> | <?php bloginfo('name'); } ?>
    <?php if(is_search()) { ?><?php _e('Search results for:','WpAdvNewspaper'); ?> <?php echo wp_specialchars($s, 1); ?> | <?php bloginfo('name'); } ?>
    </title>

    with this:
    <title><?php wp_title(''); ?></title>

    And let us know if it worked.

    Hi M, apparently it worked and code looks ok for titles and meta description. I’m not a HTML expert myself and I would like to ask a question about meta description tag: is it correct to have it like below?

    <meta name=’description’ content=’Totul despre ….’/>

    …I mean ‘description’ content is the right code?

    Thread Starter M

    (@infolegal)

    I would use the double quotes " like this <meta name="description" content="Totul despre etc." /> (and I’m not even sure it will make a difference), but for the rest it’s ok.

    How do I change the ‘description’ to “description” tag?
    After that I think we can delete the last posts as they are not quite related to the topic I must admit.
    Anyway, looks like the WP community is very useful and helpful…thanks a lot for support for a newbie (sort of).

    Thread Starter M

    (@infolegal)

    I don’t think you should worry that much about the quotation signs. It’s fine as it is right now in your site.

    Good luck with the development.

    Thanks everybody

    Hi all,

    I have been using WordPress SEO for some time and have just realized that none of my meta descriptions I have written in the seo function are actually showing up when i search google. This function does not seem to be working. I have incorporated <title><?php wp_title(”); ?></title> in the appropriate place with no effect. Can somebody please help me resolve this issue. I am using the theme athualpa and my site is https://www.tropicalbeachgetaways.com
    thanks,

    guven

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘[Plugin: WordPress SEO] Missing meta description for homepage’ is closed to new replies.