sherrynes
Member
Posted 4 months ago #
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
sherrynes
Member
Posted 4 months ago #
johnny5
Member
Posted 4 months ago #
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.
sherrynes
Member
Posted 4 months ago #
It looks like it is:
<?php the_content('Read the rest of this entry »'); ?>
Can you please tell me what I need to change there to make the Headspace2 "read more" work?
Thank you very much!
-Sherry
sherrynes
Member
Posted 4 months ago #
bump again, please? Thanks.
johnny5
Member
Posted 4 months ago #
Can you post the HTML that is used to display the more text?
sherrynes
Member
Posted 4 months ago #
Well, this is what is renendered:
<a href="http://www.efinancialblog.com/managing-student-debt-government-program/#more-869" class="more-link");">Read the rest of this entry »</a>
Is that what you mean? I have no idea where it is getting that class="more-link" from.
Thank you.
Sherry
`
johnny5
Member
Posted 4 months ago #
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
sherrynes
Member
Posted 4 months ago #
Actually, it should read:
<a href="http://www.efinancialblog.com/managing-student-debt-government-program/#more-869" class="more-link">Read the rest of this entry »</a>
I just cut & pasted that today - still not working.
Thank you for your continued help!
Sherry
sherrynes
Member
Posted 4 months ago #
bump again, please? Thanks.
sherrynes
Member
Posted 4 months ago #
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
sherrynes
Member
Posted 4 months ago #
Am I in the right place for asking this question? Should I re-post this elsewhere? I really need some help, please.
Thanks.
Sherry
sherrynes
Member
Posted 4 months ago #
aburiano
Member
Posted 4 months ago #
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.
davewilkinson
Member
Posted 4 months ago #
@aburiano well spotted on the Javascript issue.
Hello Kim!
sherrynes
Member
Posted 4 months ago #
Thank you so much for the help.
Aburiano: I changed it the way you described, but it still didn't work. That javascript link-tracker code is coming from the Google Analytics plug-in, so I deactivated the Google plug-in and changed the module back to class="more-link">(.*?) and it is still not working.
kwbridge: Thank you for posting. But I was wondering if there was something I was supposed to put in there to call the customized read more text. I guess I guessed wrong on that one.
Thank you for your continued help!
Sherry
aburiano
Member
Posted 4 months ago #
Did you change it back to
class="more-link">(.*?)</a>
or to
class="more-link">(.*?)
?
You do not need to change anything in css for the more text link to work.
Which post did you change the more text on? What did you change it to?
sherrynes
Member
Posted 4 months ago #
Actually, I put back the default code which is:
class="more-link">$1</a>
I changed the "more text" on the 'Saving on Summer: Budgeting a Vacation' post to "Read More About This Topic" - I'll do that on the most recent post as well, so it's easier to find.
-Sherry
aburiano
Member
Posted 4 months ago #
That is the default for the replace. The one I posted was for the pattern box.
So just to be sure you have them set back to the original
Pattern should be
class="more-link">(.*?)</a>
and Replace should be
class="more-link">$1</a>
sherrynes
Member
Posted 4 months ago #
I see.
I have set them back to original and turned off the Google Analyticator plug-in, and it's still not working.
-Sherry
sherrynes
Member
Posted 4 months ago #
This is the code on the index.php page (or in this theme, the home.php page):
<?php the_content('Read the rest of this entry »'); ?>
Shouldn't that look different than that when this plug-in is activated? Shouldn't that 'Read the rest...' text actually be a code calling the customized text for that particular post?
That seems to make sense to me, but I wouldn't know what code to put there.
Sherry
sherrynes
Member
Posted 4 months ago #
A plug-in developer I connected with on Twitter dug in and solved this issue. There was some specialized code calling posts in the theme I was using. Switching the code back to the traditional post loop solved it.
Thank you very to everyone who tried to help. As usual when butting up against a problem like this, I learned a lot about some other things as well as a side benefit!
Sherry