Forum Support

 
Advanced Search


New Posts
FAQs for Wordpress
If you have a question about Wordpress products please read through a list of our most commonly asked questions here.
[1]

Offline kirstykiwi
Free Member
Posts: 56
Posted on: June 22, 2015, 11:14:34 PM

I have created a blog page with a list of blogs. There is an automatic 'read more' in the template, and the post is not truncated.  I cannot find a setting for this.  Am I being blind?  I have had to add a manual readmore - so now there are 2!

See here http://www.onlinelasertraining.co.uk/news-blog/
Logged

Offline kirstykiwi
Free Member
Posts: 56
Posted on: July 08, 2015, 08:59:46 PM

Can you tell me how to set the blog readmore word number as a general setting?  If this can't be set - how do I remove it so I can just use the manual text editor readmore?
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: July 14, 2015, 03:24:58 PM

Sorry about the delayed response; I have no idea why, but I didn't get the e-mail notification for this post that I usually do.

What specifically are you trying to do?  The posts should automatically be split at the end of the excerpt or on a <!--more--> tag within the post content. 
Logged

Offline kirstykiwi
Free Member
Posts: 56
Posted on: July 14, 2015, 06:29:41 PM

If you take a look at the link: http://www.onlinelasertraining.co.uk/news-blog/

What I want to have a set amount of text, then a blue box saying 'read more'. 

What is happening, is that when I add the tag <!--more-->, it gives me a red text 'continue reading', AND a blue box saying 'read more' - that seems to come in as default and the end of the post and will appear regardless if I add <!--more--> or not.

How can I make the <!--more--> give me a blue box, and lose the default one?

Thanks
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: July 15, 2015, 11:45:27 AM

There is currently no way to remove the "Continue Reading" text without editing code.  Depending on the version of the framework you are running, that text can be found in either content.php in the theme folder, or loop.php in the vertex subfolder of the theme.

The code you are looking for is:
Code:
get_the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>') )
and you'll want to change it to just
Code:
get_the_content()
Just be careful to not remove too many of the closing parenthesis, or it will break things.
Logged

Offline kirstykiwi
Free Member
Posts: 56
Posted on: July 15, 2015, 04:13:04 PM

OK, changed it in the content.php, but all that is different is that the red text says '(more...)' instead of 'continue reading'.

There is still a blue 'read more' box there at the end of the post.  Still double cooking the egg, with asking them to read more twice.
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: July 16, 2015, 06:48:09 AM

Ok, try the following code instead then:
Code:
get_the_content(false)
If that doesn't work, this should at least be less obvious:
Code:
get_the_content('...')

Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.026 seconds with 23 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.