Forum Support

Shape 5
March 28, 2024, 06:04:01 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Readmore  (Read 1140 times)
kirstykiwi
Jr. Member
**
Offline Offline

Posts: 56



« 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
kirstykiwi
Jr. Member
**
Offline Offline

Posts: 56



« Reply #1 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
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #2 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

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kirstykiwi
Jr. Member
**
Offline Offline

Posts: 56



« Reply #3 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
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 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

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kirstykiwi
Jr. Member
**
Offline Offline

Posts: 56



« Reply #5 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
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #6 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

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
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.