jdb197
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 12345 appeared on front page titleGood point Rigaro, looks I missed the obvious solution 🙁
Forum: Fixing WordPress
In reply to: 12345 appeared on front page titleYou just need to sort out the $title value that Yoast uses to rewrite the <title> element:
One way to do this is to edit the method below in the wp-content/plugins/wordpress-seo/frontend/class-frontend.php. I have added “$title = str_replace( ‘ – 12345’, ”, $title);” near the end of the method, this strips of any ‘ – 12345’ that appears in any title. Don’t forget to make a backup:
cp wp-content/plugins/wordpress-seo/frontend/class-frontend.php wp-content/plugins/wordpress-seo/frontend/class-frontend.php.backup[code moderated - use the pastebin for any code over the forum limit of 10 lines]
Forum: Fixing WordPress
In reply to: Remove 12345 from title in browserYou just need to sort out the $title value that Yoast uses to rewrite the <title> element:
One way to do this is to edit the method below in the wp-content/plugins/wordpress-seo/frontend/class-frontend.php. I have added “$title = str_replace( ‘ – 12345’, ”, $title);” near the end of the method, this strips of any ‘ – 12345’ that appears in any title. Don’t forget to make a backup:
cp wp-content/plugins/wordpress-seo/frontend/class-frontend.php wp-content/plugins/wordpress-seo/frontend/class-frontend.php.backup[code moderated - use the pastebin for any code over the forum limit of 10 lines]