• Resolved jamieburchell

    (@jamieburchell)


    Is it possible to set/change the meta title separator that is output using %%sep%%?

    For some reason, it’s in em-dash whereas everywhere else on the website it’s a normal dash. Although that could be something converting it elsewhere.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hello,

    Try following PHP code snippet to replace meta title separator for %%sep%%.

    function gd_snippet_document_title_separator( $sep ) {
    	$sep = '-'; // CHANGE SEPARATOR HERE
    
    	return $sep;
    }
    add_filter( 'document_title_separator', 'gd_snippet_document_title_separator', 20, 1 );

    If you have any issues please open a ticket and a developer will assist you further: https://wpgeodirectory.com/support/

    Thanks,

    Stiofan

    Thread Starter jamieburchell

    (@jamieburchell)

    Hi @stiofansisland

    It occurred to me that I am using RankMath and the title separator is already set there as a simple hyphen (-) and not an em-dash (–) so presumably something else is converting it on the GeoDirectory templates?

    Plugin Author Paolo

    (@paoltaia)

    Hi Jamie,

    is the snippet provided working on your website or not?
    If not, please open a ticket as requested and a developer will assist you further:?https://wpgeodirectory.com/support/

    Thanks,

    Thread Starter jamieburchell

    (@jamieburchell)

    Hi Paolo

    No, the hyphen is changed to an em-dash on the GeoDirectory template pages (–) (& #8211;)

    I’ll open a ticket.

    Thanks
    Jamie

    • This reply was modified 11 months, 1 week ago by jamieburchell.
    Thread Starter jamieburchell

    (@jamieburchell)

    Thanks for fixing the issue ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change separator for meta tag’ is closed to new replies.