Support » Fixing WordPress » Pipe symbol

  • Need to know how I can change the Hyphen to Pipe between the Site Title and Tagline.

    And also between the Page Title and Site Title.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try this code in your functions.php,

    add_filter(‘document_title_separator’, ‘chng_document_title_separator’,10);
    function chng_document_title_separator($sep){
    $sep = ‘|’; // change separator to what you want to use
    return $sep;
    }

    Regards,
    Sarmistha

    Thank you for providing the code. But it doesn’t work as I have tried different separators.

    Regards,
    Ed

    @eddyferns
    Try this once,
    add_filter( ‘wp_title’, ‘dc_change_title_tag’, 10, 3 );
    function dc_change_title_tag( $title, $sep, $seplocation ) {

    $title = str_replace( ‘|’, ‘-‘, $title );

    return $title;

    }
    You can view this link : http://wordpress.stackexchange.com/questions/203279/how-to-change-the-seperator-in-the-title

    Regards,
    Sarmistha

    Appreciate your help but this too doesn’t work.

    Regards,
    Ed

    Hello,
    Sorry to hear that. One of these two methods should have worked. So I am assuming there can be any issue with the theme you are using. May I know which theme are you using? Or can you share the link of the site?

    Regards,
    Sarmistha

    Am using Avada theme version 5.0.6.

    Would have shared the link to the site but it is facing so many hacking attempts that I am forced to not reveal in an open forum as this might invite more attacks. If it is possible to send you an email I could share it.

    Regards,
    Ed

    Hello,
    Since you are using the “Avada theme” and it is a paid theme you should consult there support forum for the solution of this problem. I am very sure they will have a solution. I have tested the above codes with default wordpress theme. They are working fine.
    Thanks,
    Sarmistha

    No issues I’ll find a way. The support has already expired.

    Do not see the point in subscribing to their paid support just for one query.

    Thank you for your time.

    Regards,
    Ed

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Pipe symbol’ is closed to new replies.