• Hello Support team,

    First of all, thanks for creating such helpful plugin for this community.

    My problem is, My theme has separate homepage design. When I try to add template for my homepage and frontpage on this plugin (like categories and tags), is tells me that

    “Homepage & Front page
    You can determine the title and description for the front page by editing the front page itself ?
    You can determine the title and description for the blog page by editing the blog page itself ?”

    But when I am editing my homepage meta data, It does not reflect right one.
    I am setting title template as %%title%% but when I check via seocentro meta tag analyser it shows me template as %%title%% %%metakw%%.

    Please note: I have imported this settting from my other site, where homepage design was not seperate function. I also try to uninstall this plugin to reconfigure, but after I reinstall, it automatically shows me the same settings.

    Please help me to make my homepage title template as %%title%% .

    Thanks in advance.

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello, I had the same problem once. I noticed that many people ask in here the same thing but none gets an answer.

    Propably the only case where this happens is that your theme uses a static page as homepage. (actually you have chosen to do so, not your theme by itself). So all you have to do is go to your head.php file and paste this:

    <?php if (is_page('your homepage slug')) { ?>
    		<title>Homepage title</title>
    		<meta name="description" content="homepage description" />
    		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    	<?php }
    	else {?>
    		<title><?php wp_title(''); ?></title>
    		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    	<?php } ?>

    just after your meta charset.

    Hope this helps you and other people too. If so mark it as resolved.

    Cheers,
    Tim

    @wpuser131 awesome thanks! Although I had to add the code immediately after the opening <head> tag for it to work.

    The only issue is it leaves an empty title tag also, is there any way to be rid of this without affecting the other pages?

    p.s. I owe you a beer.

    I am glad I helped you.

    I didn’t really understand your point about the title tag, can you be more specific?

    Cheers

    It is duplicating the title tag so there are two.

    Is there anyway to stop that?

    I still don’t get it.

    Which branch is taken and shows it duplicated? The 1st or the 2nd?

    Can you give a link or a copy paste of the html produced in your browser? Because that seems weird.

    Ok I think I figured it out. Below you can see what it was doing. Two sets of title tags.

    <head>
    		<title>Home To Photographers in England | PhotoLand</title>
    		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    		<title>
    		 | 	</title>

    I removed the themes title php code that is below,

    <title>
    		<?php if(is_home()) { echo bloginfo('name'); echo ' | '; echo bloginfo('description'); } else { echo wp_title(' | ', false, 'right'); echo bloginfo('name'); } ?>
    	</title>

    And now it seems ok ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unamble to change homepage title setting’ is closed to new replies.