Jump to content

Archived

This topic is now archived and is closed to further replies.

shelynx

"Read More" Text

Recommended Posts

shelynx    0
shelynx

Everything's working just fine after using a child theme though I really miss the magazine style for search results etc. BUT While trying to keep the first page a little shorter I added the "Read More" link in the articles. 

 

I would love to change the Text though. - Where can I find it or what do I have to add where?

 

Additionally - since I am an absolute CSS Newbie though trying - : is it possible to change the format (colour, etc) of the Read More Link without changing ALL links on the blog? 

 

I really appreciate your help! Best wishes and thank you!

Share this post


Link to post
Share on other sites
shelynx    0
shelynx

Update: Have been able to change only the paramters of the "more-link" - But havn't been able to find where to change the text so far.

Share this post


Link to post
Share on other sites
shelynx    0
shelynx

Having a problem always is a good way to get curious how to solve it by oneself. - So I did... In case anyone is looking for the same thing: 

 

A) Changing the "Read More" Text

 

Here is the solution:

find the class.posts.php and search for "Read More" - Just replace it with any text you wish and Save. 

 

B) Changing the Look of "Read More"

Find the style.css in your child theme (I got Nick's - look here - there's another forum post concerning it. 

 

Here is just my version of the "Read More" - you can change anything from size to color, effect, hover effect or more). 

 

/*Read More Link - Style*/
.more-link {
Color: #8aa49e;
font-size: 130%;
font-variant: small-caps;
text-decoration:underline;
}
 
.more-link:hover {
 Color: #AD7f7f;
 font-size:180%;
    }

 

I know - that is newbie stuff  - but I guess there might be some others like me here. 

 

I have just one remaining question:

I didn't want to change a main file of DMS itself but I don't know how to create a functionable class.posts.php in the child theme itself. I would appreciate help there since I don't want to mess with the original files. 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi,

The editing of core files is ABSOLUTELY NOT permitted or supported.  Additionally, it will result in the files being overwritten.  Please do not tell people to edit core files unless you're prepared to offer them support when the next upgrade wipes out the changes you recommended (and it will).  We won't support them.

 

While I understand you're trying to be helpful to others, please think clearly and check with someone first before posting something like that.

 

Magazine mode would be available with a paid subscription.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
shelynx    0
shelynx

I am sorry - I really wanted to help and to find a good solution. That's why I specifically asked for a way to get this into a child theme. - Do you have any advice for me to change "Read More" in a child theme?

 

Please feel free to delete the improper content I wrote. - I can't edit the posts now. I wasn't aware it was such a problem so please don't take it so harsh I found a solution myself. Please be so kind to help me find another one. Changing the Text of "Read more" shouldn't" be so difficult. Maybe another idea for an update?

Share this post


Link to post
Share on other sites
Rob    547
Rob

Unfortunately, class.posts.php is not in a section, but in core files. Sections in DMS can be ported to a child theme.  Core files will likely not work from a child theme.

 

Luckily, you were looking in the wrong place to begin with.  So, reinstall the core files if you changed them.

 

Download from your site wp-content/themes/dms/sections/postloop

 

Upload it to your child theme's sections folder.

 

Open the postloop section.  Edit the section.php file. Search for Read More.  You'll find the default text there.  You can edit that as desired.  Save. Re-upload to the child theme in the postloop section. 

 

That's how you do it, safely.

 

Sorry if I was harsh, but this is a serious issue for me and my fellow moderators.  You might try to read the docs which cover most of this pretty well. http://docs.pagelines.com


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ovidiuav    0
ovidiuav

Rob

Too bad that only works when you have excerpts enabled. shelynx's solution works even when you insert the 'more' tag.

 

shelynx

Thank you for sharing, the information really helped me. Don't worry, I won't be expecting support from you after an update replaces the edited file, I can take care of that myself. The whole "don't edit core files" thing makes sense up to a point, but sometimes they act as if everyone's an imbecile, like in this case, making a huge fuss over replacing the "Read More" text. They'd rather you not change what you want to change and be disatisfied with it instead of helping you if it involves editing "core files," no matter how minuscule the change, like in this case.

Share this post


Link to post
Share on other sites
Rob    547
Rob

No one is making a huge fuss.  We have rules about these things, even if people don't like them.  They are there to protect everyone.  You'd not be too pleased if work you did was wiped out and the person providing the information wasn't a responsible party, like our team.

 

I don't mean any disrespect, but we're trying to insure everyone has a good experience with the product. Considering the price, following some simple rules shouldn't be so difficult, particularly when those rules are intended to protect your interests and your site's integrity.

 

Translations can be found via https://www.transifex.com/projects/p/pagelines-dms/


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
markfsimmons    0
markfsimmons

How did you change the length of where it adds the ellipses to break the paragraph before the read more? I'd like more lines. 

Share this post


Link to post
Share on other sites
Jake    74
Jake

HI markfsimmons - In the DMS visual editor for the Content/PostLoop section, you'll see set of excerpt configurations, and one that allows you to enter a specific number of words.


Have you searched the forums yet or checked out the DMS user docs?

PageLines geek, blogging at MyUntangledLife.com

Share this post


Link to post
Share on other sites

  • Similar Content

    • DanatTLFN
      By DanatTLFN
      Site URL: thelocalfilmnetwork.com
      DMS Firmware: 2.2.1
      Wordpress: 4.5.1
      --------------------------------------
      Ticket Reference: 
       
      At the bottom of this post, there is a CSS only option that I have implemented into my site. It looks brilliant, and I am super grateful for that addition to the thread. The only issue I am having is that the code he provides does not include all of the styling options for the button itself.
      My question is, how might I go about editing the styling of the button i.e. shadows, every element of the coloring, and border colors?
      No big deal if it's not easy to fix. Happy to provide any further information if necessary.
      Kind regards,
      Dan
      P.S. I have opened up the button in Google Dev window with Inspect and start editing it there, but it looks like there are some areas of the code that are connected to an external source (most likely bootstrap) and therefore I can't seem to edit it as much as I would like.
    • sruehle
      By sruehle+
      Hey there,
      I hope that this questions doesn´t come up every day:
      I´d like to set up a sub-page that contains my blog (http://www.finmeetstech.com/blog/). When I am adding posts to this page, they always show as excerpt with a read more button that links to an other page, at which the full post content can be viewed. However, I would like to either have the whole blog content on the first page (http://www.finmeetstech.com/blog/) or to change the functionality of the read more button, so that it is toggling the full content instead of loading a new page. 
      I already selected
        For each article in a feed, show Full text
       
       but it didn´t work.
      I am using DMS with the voyant child theme. I hope that you can help me with this. Moreover, I should add that I am not really confident in editing any php files. 
      Thank you in advance. 
    • DonRicardoRVM
      By DonRicardoRVM+
      HI!
       
      First of all, sorry for my bad english.
       
      I have a problem that I never could solve: I can´t translate the words "READ MORE" in the loop. Where must I translate them?
       
       
    • studyworldglobal
      By studyworldglobal
      How to change "Read More"  link in to a black button with white text in sentence case.
       
      Location: skilllearner
    • DonRicardoRVM
      By DonRicardoRVM+
      Hi
       
      I have the DMS2 in spanish, its all OK, but  the string "read more" in the main loop is in english. In the po file, it is translated. What can I do?
       
      Thanks
×