How can i chage this "–" into this "-"

Posted in: Newspaper
Post count: 46

Hello team, how can i change the format of this sign “–” into this “-“?

Right now all the posts are like this: Post name – Title and i want it Post name – Title

Post count: 46

*edit* Right now all the posts are like this: Post name – Title and i want it Post name – Title

Post count: 1341

Yoast SEO: https://wordpress.org/plugins/wordpress-seo/

https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/

For example:

The default title variable string is:

%%title%% %%page%% %%sep%% %%sitename%%

where %%sep%% can be set according to your any symbol.

Post count: 46

Thanks for the asnwer but is not what i need. I already use yoast plugin. I want to use “-” in page.

Here https://demo.tagdiv.com/newspaper/smart-list-style-5/ the post title “Smart List – Style 5”. Yoast will not change the “–” on the site only in the <meta property=og:title content

Post count: 1341

If I understood your question correctly. What you’re asking is it’s not Theme driven. This function is controlled by the WordPress engine:

https://codex.wordpress.org/Function_Reference/wptexturize

Try in your function.php file add:

add_filter('document_title_separator', function() { return 'YOUR_SYMBOL';} );

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.