Support » Theme: Delicacy » Site Title appears twice in Feed. How can I change it so it displays only once?

  • Resolved lilacsun

    (@lilacsun)


    Hello,

    For some reason, the Site Title is displaying twice in the Feed.

    example.com/feed

    Site Title | Site Title
    Site Description

    What do I change so the Site Title displays only once in the Feed?

    Thanks so much.

Viewing 11 replies - 1 through 11 (of 11 total)
  • lilacsun

    (@lilacsun)

    Hello again,

    I was able to change it so the Site Title displays only once in the Feed.

    I went to:
    wp-includes/feed-rss2.php

    I found this line:
    <title><?php bloginfo_rss(‘name’); wp_title_rss(); ?></title>

    And I changed it to this:
    <title><?php bloginfo_rss(‘name’); ?></title>

    The Site Title is now displaying only once.

    paulwpxp

    (@paulwp)

    @lilacsun

    It’s wrong to edit WP core file.

    lilacsun

    (@lilacsun)

    Could you please tell me the correct way to fix this?

    paulwpxp

    (@paulwp)

    @lilacsun

    The default <title> output by WP for feed is not the cause of double site name that you see, it’s the function in your theme that filters wp_title() without the if-not-feed check, on top of that it doesn’t aware of the way WP outputs feed’s <title>.

    I would just keep this topic open to let the author of the theme see the issue.

    Theme Author alex27

    (@alex27)

    Noted 🙂 I’ll remember to fix this in the next update.

    lilacsun

    (@lilacsun)

    Great. Thank you.

    @paulwpxp

    hihi,

    you are so clever to tell us not to edit core files and to blame the author of the theme! Blame WP! Because this problem occurs with TwentyTwelve for example!

    Please tell me which author I have to contact? ;=)

    better: please tell me how to fix that without editing core files!

    esmi

    (@esmi)

    Forum Moderator

    @avantart: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem – despite any similarity in symptoms – is likely to be completely different.

    WordPress is still under development…

    I was also the same problem that feed titles are repeating two times. Finally i get it fixed in just some simple ways…

    Follow the link here a complete explanation about fixing Double Feed Title in WordPress…

    http://www.gethow.org/how-to-fix-double-feed-title-in-wordpress/

    I hope the solution get fixed by this.

    @atulkumarpandey

    Please do not advice users to edit any of WP core files.

    See how to filter wp_title() and not doubling it in feed.
    http://themes.trac.wordpress.org/browser/twentytwelve/1.1.1/functions.php#L168

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    @paulwpxp, Thank you for highlighting that.

    @atulkumarpandey, For this reason I’ve now removed the other occurrences of your advice regarding editing the core files.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site Title appears twice in Feed. How can I change it so it displays only once?’ is closed to new replies.