kimrenee82
asked 9 years ago

I used the Title customization in the template and the site title is pulled twice into the title section of the feed and therefore also the Feedburner.

See example:

 

 

This is not a plugin, just the general feed from wordpress.

4 Answers
DominicStaff
answered 9 years ago

Can you tell me more and I can help you.

Regards,
Dominic

kimrenee82
answered 9 years ago

I’ve fixed the problem manually by changing the template files.  However, in the customize section where the user is asked to put in the site name, when I put in the site name (which is also connected to the wordpress default site name) it duplicates the name in the actual title in the source code… and therefore also the rss.  I will show you the part of wallpress that I commented out.

kimrenee82
answered 9 years ago

For whatever reason, this code below returns a duplicate title like such: <title>SnagPopSnagPop</title>.  Deleting the title from the customize area returns <title></title>. So to get around it, I commented out the sections below and hardcoded what I wanted.  Might look into it.

 

function wallpress_filter_wp_title( $title ) {
// Get the Site Name
$site_name = get_bloginfo( ‘name’ );
// Prepend name
//$filtered_title = $title . $site_name;
// If site front page, append description
if ( is_front_page() ) {
// Get the Site Description
$site_description = get_bloginfo( ‘description’ );
// Append Site Description to title
//$filtered_title.= ” – “.$site_description;

kimrenee82
replied 9 years ago

Oh, this is in functions.php 🙂

DominicStaff
answered 9 years ago

That’s great ! please don’t hesitate to contact us if you have further questions.

Regards,
Dominic

Powered by DW Question & Answer Pro