WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] [Plugin: WordPress SEO] Missing meta description for homepage (26 posts)

  1. M
    Member
    Posted 3 years ago #

    How can I add the meta description for the homepage?

  2. Cipri Palamariu
    Member
    Posted 3 years ago #

    Same here!

  3. Tristan
    Member
    Posted 3 years ago #

    ME 3

  4. 140hours
    Member
    Posted 3 years ago #

    Me too, and I don't see the meta keywords either, hello?

    In other words, the most basic SEO functions imaginable are missing from your tool?

  5. Cipri Palamariu
    Member
    Posted 3 years ago #

    Mine works now. It was very simple. You just have to read the documentation...

  6. Cipri Palamariu
    Member
    Posted 3 years ago #

    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.
    Remind your self that in case of a theme update, you will have to reedit the header.php

    Good Luck!

  7. boundlessdata
    Member
    Posted 3 years ago #

    Cipri Palamariu, thank you, that fixed my problem. The only documentation I have only gave the wp_title('') part of the title section. Is there more documentation that I don't know about?

  8. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    Meta description and title are different. Solution above will work for title indeed, as for meta description: the plugin will not generate one for you, so to change it, you have to either:

    - if it's a static page, go to that page and enter a meta description
    - if it's a posts page, go to SEO -> Titles, and enter a meta description for the homepage there.

  9. invasive
    Member
    Posted 3 years ago #

    Make sure that:

    <?php wp_head(); ?>

    is included before the closing </head> tag. Otherwise, you will not see your meta description/keywords tags.

    Bill

  10. Aaranged
    Member
    Posted 3 years ago #

    @yoast, I don't understand your solution to the homepage meta description issue. You say "if it's a posts page, go to SEO -> Titles, and enter a meta description for the homepage there." If it's the homepage, it's not a post page, right?

    Trouble may be that I'm using Thesis, which has its own title, meta description and meata fields for the home page (under Site Options > Home Page SEO). When the title is entered there it is saved, but when the meta description or meta keywords are entered and saved, they do not show show up in the home page code.

    The SEO plugin is working fine for meta d/meta k all other types of pages (pages, posts, etc.) - not just on the home page.

    Thanks, Aaron

  11. Japayne
    Member
    Posted 3 years ago #

    @Aaranged, the solution appears to be: use Thesis for the home page title, and use the SEO plug in for all the metas (and the titles for anything that is not the home page).

    The problem relates to Thesis handing over control of the meta descriptions/keywords if it finds a class with the name All_in_One_SEO_Pack. It appears the SEO plug in uses a class with that name. From the code: "Let's act as though this is AIOSEO so plugins and themes that act differently for that will fix do it for this plugin as well."

    I guess it's a bit confusing because on the home page, Thesis does not check for SEO All In One, for the title tag.

  12. efyoo2
    Member
    Posted 3 years ago #

    Thanks a lot! This has been troubling me for some time now.

  13. Aaranged
    Member
    Posted 3 years ago #

    Thanks Japayne. To be clear for anyone reading this thread, to change the homepage meta description and keywords for a site running Thesis and the Yoast WordPress SEO plugin, navigate to "SEO" button in the left hand admin menu, and select "Titles." On that page you'll find the fields "Meta description template" and "Meta keywords template" under the heading "Hompage" - which is where you can enter your description and keywords for the homepage. After doing so, click the save button at the bottom of the page and you're good to go!

  14. Michael
    Member
    Posted 3 years ago #

    This is a good post ... I am getting the Meta data I'd like to show up in the head, but not where I'd like it ..

    How do I get the rest of it to appear towards the top of the <head> tag.

    As it is now I am using <title><?php wp_title(''); ?></title> .. Which works .. but the rest of my meta data is at the very bottom right before </head> .. Above all of that is info for other plugins / Javascript. I want the J-SCript and other CSS related links to be at the bottom and all of my meta-data towards the top of the <head> tag.

    How do I move all the meta-data to the top.
    I'd like it right below my <title></title> ??

    Thanks.

  15. Japayne
    Member
    Posted 3 years ago #

    hi Michael, I assume you're not using a Thesis theme if you have control over the title tag and wp_title.

    This is not really an answer but more of an explanation...

    WordPress outputs much of that type of HTML where ever it finds the function wp_head (http://codex.wordpress.org/Function_Reference/wp_head) - towards the closing head tag seems to be where most people put it.

    The problem (as I understand your question) is that a number of plug ins and custom functionality add tags to wp_head and so what is returned depends on what you have installed.

    In the past I usually over come (some of) this by creating my own functionality and/or by modifying the theme... but there may be some plug ins that do this already in a more elegant manner.

    In this case, if you want to move the meta tags to a specific location, I would move wp_head, but it's hard to say what other tags will be moved with that function as well.

    Not really an answer, but good luck :)

  16. Michael
    Member
    Posted 3 years ago #

    Thank-You ... I am not using a Thesis theme. Good Assumption. :)

    I did move the wp_head actually .. But there was still jscript above the meta-data.

    I'm still looking for a solution to move all my meta-data up top of the <head>.

    Thanks.

  17. zimbrul
    Member
    Posted 3 years ago #

    @ 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?

  18. M
    Member
    Posted 3 years ago #

    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.

  19. zimbrul
    Member
    Posted 3 years ago #

    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]

  20. M
    Member
    Posted 3 years ago #

    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.

  21. zimbrul
    Member
    Posted 3 years ago #

    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?

  22. M
    Member
    Posted 3 years ago #

    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.

  23. zimbrul
    Member
    Posted 3 years ago #

    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).

  24. M
    Member
    Posted 3 years ago #

    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.

  25. zimbrul
    Member
    Posted 3 years ago #

    Thanks everybody

  26. guvenp
    Member
    Posted 3 years ago #

    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 http://www.tropicalbeachgetaways.com
    thanks,

    guven

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic