[resolved] Can't change title separator on homepage? (2 posts)

  1. crispyollard
    Posted 3 years ago #


    I've got a bit of an issue with using the blog name and title separator. Here is my code as from the theme I'm using which I have edited to implement a '|'.

    	if ( is_search() ) { echo "Search for $s"; }
    	if ( is_404() ) { echo "404: Page Not Found"; }
    	if ( is_archive() ) { echo " archive "; }
    	if ( !is_home() ) { echo " at "; }

    This works on all pages except the homepage. My homepage simply displays:

    blogname - tagline

    There is no | in sight. Forgive my novice PHP head. I assume the fix is very simple. Can anyone help?

  2. crispyollard
    Posted 3 years ago #

    As I hit Post I realise that nothing is wrong apart from my stupidity at setting a custom title with Yoast's SEO plugin which overrides the title. Ho ho.

    Remove the post if required. Or leave it to laugh at me. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic