How to remove Site Name on Post Title

Posted in: Newspaper
Post count: 42

Hello, i would like to know how to take of the SITENAME from the TITLE POST without any wp plugin. I don’t use any plugin, just using xml sitemap who have no options to change Post Title.

Post count: 20688

Hi,

The Yoast SEO plugin has more control over this
https://yoast.com/wordpress/plugins/seo/titles-and-meta-descriptions/
With it you can control the title for posts specifically
https://www.screencast.com/t/2sUrL1ofQ
The theme itself ads the title here
https://www.screencast.com/t/Zg292vmYt

Thanks

Post count: 42

Yes, i know about Yoast. The problem is that allways that i isntall yoast CPU site over load. So, i will not use Yoast, or any other seo plugin.

Please help me: On https://www.magazinefeminina.com.br/

I would like remove SITE NAME = ” | Magazine Feminina ” from post title. Can you help me with the right code?

<title><?php wp_title(‘|’, true, ‘right’); ?></title>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>

Post count: 20688

Hi,

That is a unusual problem with the Yoast SEO plugin. Try modifying the title like this and check the results
https://www.screencast.com/t/422c08TQl124
Replace the line of code containing the title from the theme, with this one
https://pastebin.com/gDDD81nB
Make a backup of the file before trying this, just to be safe.

Thanks

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