February 29, 2012 at 3:56 am #9804
I wrote a post on my blog that contains a More tag in the middle. When I click the Read More link in that post on my home page, it takes me to the single post, but fails to jump down to the More tag. From what I’ve been reading on the WordPress support forums, this is most likely an issue with the theme.
In addition to this, custom More messages are not being applied. For example, <!–more Custom message–> just displays “Read more” instead of “Custom message”.
Could you shed any light on the above two issues?March 9, 2012 at 7:42 pm #65905March 9, 2012 at 11:50 pm #65906
In template blog.php there is a function call for the content at line 85
you probably have to delete the hard coded read more and make it read
to make custom messages work.
As for the read more jump link: not sure why this happens for you: as you can see in the theme demos blog it works they way it is intended to work: http://kriesi.at/demos/display/blog/
maybe there is a plugin that alters the read more option?March 27, 2012 at 8:37 pm #65907
Thanks, but I forgot to mention that this is happening in one of the content boxes on the home page (Mainpage column 1, which is displaying a Post). The Read more behaviour is being affected by line 140 in wp-contentthemesdisplayframeworkclasseskclass_display_box.php:
echo '<a href="'.get_permalink().'">Read more</a>';
How do I make it use the standard More behaviour?
(Edit: code formatting)March 29, 2012 at 6:07 am #65908
Try to replace following code in kclass_display_box.php:
echo '<a href="'.get_permalink().'" class="more-link">Read more</a>';
PeterApril 2, 2012 at 4:49 pm #65909
Thank you! I replaced the lines you suggested with:
and now it behaves exactly as expected. Note that I did not pass a parameter to the_content() so that it will use the custom message from my more tag (as described in my first post). I also had to edit the more-link style in wp-contentthemesdisplaycssstyle*.css as follows:
background:transparent url(../images/skin3/bullet_white.png) no-repeat scroll right 15px; /* Unchanged */
padding-right: 8px; /* Added this to keep the bullet from touching the text. */
display: inline; /* Added this so it doesn't wrap the text like the default block style. */
Without the above css modification, the custom more text was displaying in block format and wrapping oddly.April 4, 2012 at 6:33 pm #65910
The topic ‘Following the More tag stays at top of page’ is closed to new replies.