• Resolved Bonnie

    (@bonnie)


    For some reason, I am getting a duplicate blog title in my title bar when using this plugin.

    E.g. this page: https://www.hey.nhs.uk/heybaby/hull-antenatal-classes/

    The title bar says Hull Antenatal Classes | HEY Hospitals NHS Trust | HEY Hospitals NHS Trust.

    I want it to appear once, but not twice. In the editor, it only appears once, so I can only assume it’s being added again somewhere, but I don’t know where!

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @bonnie,

    The theme you’re using adds the blog name to the home page title. It shouldn’t do this.

    I see you’re using the X theme by Themeco. I own a license for a client of mine, so I’ve dealt with this first-hand.

    Now, you can resolve this issue in various ways. I’ll list the two easiest.

    1. Prevent X from changing the title.

    Add the following line of code to your (child-)theme’s functions.php file:

    function x_wp_title( $title ) { return $title; }
    

    The function prevents their filter from running; because there’s a condition looking for it. But, if someone calls it, it shortcircuits it to the default title behavior.

    2. Use the Title Fix extension.

    We’ve provided a free extension in the Extension Manager plugin, which overwrites the titles after they’re outputted. It’s called Title Fix.

    I hope this helps 🙂 Cheers!

    Thread Starter Bonnie

    (@bonnie)

    Thank you so much, Sybre, for your speedy response. Your first solution fixed the issue instantly, and I am thrilled it didn’t need another plugin or extension. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate blog title’ is closed to new replies.