• Hi Guys,

    I can’t figure out why my sitename appears at the beginning of every page in my browser and Google. I use Yoast SEO and my sitename is supposed to be at the end of every page.

    I read something about the header.php but don;t know what I should be changing:

    <title><?php bloginfo(‘name’); ?> ? <?php bloginfo(‘description’); ?><?php if ( is_single() ) { ?><?php } ?><?php wp_title(); ?></title>

    Do I need to change something here to remove my sitename at the beginning of every title? For example, see 404-page: https://www.lovelings.nl/test
    The title of the page in browser is ‘sitename’ >> ‘page not found’ >> ‘sitename’.

    Hope someone can help me, thanks! ??

    [ No bumping please. ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Wanderer

    Replace the block you quoted above with this

    <title><?php wp_title(); ?></title>

    and you’re good to go.

    Afterwards if you feel like you need to change the title structure, you can visit this page

    https://www.lovelings.nl/wp-admin/admin.php?page=wpseo_titles

    Thread Starter Wanderer

    (@lovelings)

    Hi Gagan Deep Singh,

    Thanks I will try it! To change the site structure with SEO titles is not working. It has no influence on the sitename at the beginning of everypage.. For ‘productspages’ my setting are

    %%title%% %%page%%

    but in real life my page shows: sitename – seperator – title. I want it turn around: title – seperator – sitename.

    ps. Why is my website showing in this post? I had made a google shortener because I don;t want my posts being visible in Google when customers search for my shop..?

    Wanderer

    Always welcome ??

    It will work when you replace that part in the header as I mentioned.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove double sitename?’ is closed to new replies.