How to get a separator character inside of php template

#506534
  • Resolved Lay Back
    Rank Math free

    Greetings! I just want to get separator character from math rank in a custom title generator on a single page. Is it possible to just call this character in php? Thank you!

Viewing 1 replies (of 1 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with customizing the Rank Math separator character.

    You can customize the filter below to change the Rank Math separator character. You would need to add a conditional statement to limit the snippet to a specific post/page:

    
    /**
     * Filter to change Separator %sep%.
     */
    add_filter( 'rank_math/settings/title_separator', function( $sep ) {
     return $sep;
    });
    

    Hope that helps. Please let us know if you have questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘How to get a separator character inside of php template’ is closed to new replies.