WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Different TITLE and META for home.php and index.php (1 post)

  1. adamwalter
    Member
    Posted 2 years ago #

    I have my site setup such that home.php is my homepage template and index.php is controlling the blog "page" of my site. Example:

    http://www.orourkehospitality.com/
    http://www.orourkehospitality.com/blog/

    If I set the tags for "homepage" under Yoast SEO's title settings, they apply to BOTH home.php and index.php. What I need to do is change the SEO tags for just the blog page (index.php). Is this possible?

    I've tried doing some WordPress conditional statements in the header to some success... I've succeeded in hard-coding meta/title tags so that they show up only on my blog page, however Yoast SEO also adds its meta data from the "homepage" settings, resulting in two sets of meta. Argh!

    My final solution may be to create a new template for my homepage and stop using home.php. But I've got a bunch of is_home() conditions I'd have to re-write if I did that.

    Any ideas out there?

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic