• Resolved Sherry Dedman

    (@sherrynes)


    I’m having trouble getting the ‘more text’ fuction of HeadSpace2 to work. The field for the customized text is coming up on my “write post” page. But when I put something in there and publish the post, the more text just has the default “read more” text and not my customized text.

    Was I supposed to make a change to the template/theme in single.php as well?

    Thanks in advance for any help.

    -Sherry

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter Sherry Dedman

    (@sherrynes)

    bump please?

    It is possible that more link in your theme is not the same as the one in the default theme. The configuration for the more module allows you to change the pattern that is used to match the more link. If you have a look at your theme and the module config you may be able to change it, otherwise post them here.

    Thread Starter Sherry Dedman

    (@sherrynes)

    It looks like it is:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    Can you please tell me what I need to change there to make the Headspace2 “read more” work?

    Thank you very much!

    -Sherry

    Thread Starter Sherry Dedman

    (@sherrynes)

    bump again, please? Thanks.

    Can you post the HTML that is used to display the more text?

    Thread Starter Sherry Dedman

    (@sherrynes)

    Well, this is what is renendered:

    <a href="https://www.efinancialblog.com/managing-student-debt-government-program/#more-869" class="more-link");">Read the rest of this entry &raquo;</a>

    Is that what you mean? I have no idea where it is getting that class=”more-link” from.

    Thank you.

    Sherry

    `

    Ok, I think I see the problem – there is a ); that shouldn’t be there (just before the ‘Read’). The more text module is looking for the pattern class=”more-link”>, but it’s class=”more-link”);>. This is actually invalid HTML. I’m not sure where it’s coming from, but you could try disabling other plugins to see if they’re affecting it

    Thread Starter Sherry Dedman

    (@sherrynes)

    Actually, it should read:

    <a href="https://www.efinancialblog.com/managing-student-debt-government-program/#more-869" class="more-link">Read the rest of this entry &raquo;</a>

    I just cut & pasted that today – still not working.

    Thank you for your continued help!

    Sherry

    Thread Starter Sherry Dedman

    (@sherrynes)

    bump again, please? Thanks.

    Thread Starter Sherry Dedman

    (@sherrynes)

    bumping again. Is there anyone who can tell me what I need to do to the above code to make the customizable “more text” feature in the Headspace2 plug-ing actually work?

    Thanks for any help.

    Sherry

    Thread Starter Sherry Dedman

    (@sherrynes)

    Am I in the right place for asking this question? Should I re-post this elsewhere? I really need some help, please.

    Thanks.

    Sherry

    Thread Starter Sherry Dedman

    (@sherrynes)

    bump!

    I looked at your website and it looks like your links also include a javascript tracking tag after the “more-link” class.

    So to fix it, go to the Headspace2 admin area and click the button to edit the “more text” module.

    Where it has
    class="more-link">(.*?)</a>

    change it to
    class="more-link" onclick="javascript:pageTracker._trackPageview ('/outbound/www.efinancialblog.com');">(.*?)</a>

    This is the css I use for .more-link

    .more-link {
    text-align:right;
    float:right;
    font-size:10px;
    width:72px;
    height:17px;
    text-transform:uppercase;
    padding-right:10px;
    text-indent:-9009px;
    margin-bottom:8px;
    background:url(images/b_more.png) no-repeat right top;
    }
    .more-link a {
    text-indent:-9009px;
    overflow:hidden;
    margin:0;
    padding:0;
    }

    I am using an image for the background, which you might not want. And what it looks like is available on my site site – linked to my name here.

    @aburiano well spotted on the Javascript issue.

    Hello Kim!

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘HeadSpace 2 ‘More Text’ Code’ is closed to new replies.