Forums

'Read More' Function = Unwanted Text on Site (5 posts)

  1. elevenveleven
    Member
    Posted 4 months ago #

    Hello, I just added a 'Read More' function so I could add a read more link to my excerpts...works great in the Loop, but when viewing a single post I get the 'Continue reading' text floating in the top left of the site as seen here:

    http://www.elevenveleven.com/2011/12/21/check-out-antagonist-hoody/

    Here's what I'm using:

    [please mark any code using the code button to keep it from getting distorted - http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    function new_excerpt_more($more) {
    global $post;
    return 'ID) . '"> <span class=continuereading>Continue reading »</span>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    I am not a developer, but a designer, so I may be missing something obvious...

    Thanks for your time and advice.

  2. alchymyth
    The Sweeper
    Posted 4 months ago #

    it comes from the meta description, which is probably using the excerpt without applying the proper method to mask some of the characters.

    <meta name="description" content="Our collection is just out of the gate but has already received great feedback and praise from our fans. The ‘Antagonist’ has been a standout hit. To acknowledge this positive response, the E2 crew took it out for a closer look via a photo shoot. The Antagonist t-shirt and hoody feature a typeface that most<a href="http://www.elevenveleven.com/2011/12/21/check-out-antagonist-hoody/"> <span class=continuereading>Continue reading »</span></a>" />

    are you using a plugin for the meta decription?
    if not, look into header.php

  3. elevenveleven
    Member
    Posted 4 months ago #

    Yes I a using a plugin for the meta description -"PLain Meta Tags"
    I need to tell it so ignore the 'read more text' in the function correct?
    How do I do this? Thanks.

  4. alchymyth
    The Sweeper
    Posted 4 months ago #

    get a different plugin - hopefully one that is programmed properly to work with these excerpt read-more links.

  5. elevenveleven
    Member
    Posted 4 months ago #

    Much Thanks Alchymyth - I'll try a new plugin and see what happens...

Reply

You must log in to post.

About this Topic