Jump to content

Archived

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

fabienfons

Replace "Read More" on Platform 5

Recommended Posts

fabienfons

i,

On DMS, it was possible to replace "Read More" what we want...

On Platform 5, we can't...

I'd like to replace "read more" by "Lire la suite"

Could you help me ?

Thanks

Fabien

Share this post


Link to post
Share on other sites
Simon

You have the same options as DMS, there is a PHP filter.. or you can use jQuery..

'continue_reading_link' is the filter name.. or for jquery something like this..

 

Share this post


Link to post
Share on other sites
fabienfons

I'm sorry, I don't understand anything....:(

What are you talking about ?

Which DMS Toolbar ??? I'm using platform 5; could you explain me what to do on platform 5 ?

Share this post


Link to post
Share on other sites
Simon

I never mentioned a DMS toolbar.

The same WordPress filter has been used in PL5, so if you want to use PHP to change the text, then use continue_reading_link filter, if you want to use javascript to change the text then the solution is right there in the post I linked to.

Share this post


Link to post
Share on other sites
fabienfons

OK. I don't know if i am clear...

I want to change "Read more" by "Lire la suite" everywhere on my website.

Where are the files that i have to modify ?

On the FTP i imagine, but in which folder ????

Share this post


Link to post
Share on other sites
Simon

You dont have to edit any files.

Simply add this to the advanced/header scrpts area in main PageLines settings in wp-admin

<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link a').text('Lire la suite');
  })
</script>

 

Share this post


Link to post
Share on other sites
fabienfons

Thanks, but it doesn't work....:(

Share this post


Link to post
Share on other sites
Simon

Can you post the site url so i can give you the exact code then?

Share this post


Link to post
Share on other sites
Danny

Why are you using the font tag? The font tag is not supported in HTML5 and therefore, shouldn't be used. You have multiple font tags repeating on your site when I view an article.

https://cloudup.com/c8uKWQkrqMF

This is likely causing the issue.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
fabienfons

ok, i didn't know...

I don't know why...

Maybe a plug-in ???

Share this post


Link to post
Share on other sites
Simon

Looks like you are using loops?

So show us the code you are using there, so we can adjust the jquery.

Share this post


Link to post
Share on other sites
fabienfons
7 hours ago, Danny said:

I don't use the page lines Loops section.

I pasted the code you gave me ! (in pagelines / settings / advanced)

 

<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link a').text('Lire la suite');
  })
</script>

Share this post


Link to post
Share on other sites
Simon
<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link').text('Lire la suite');
  })
</script>

Thats the correct code, my bad..

But anyways the code is nowhere to be seen in your page output so i dont know where you are adding it.

100% works..

565cb813708e9_ScreenShot2015-11-30at20.5

Share this post


Link to post
Share on other sites
Simon

Thats because you are using loops, you need to provide the loops code you are using so I can apply a class to it..

Share this post


Link to post
Share on other sites
fabienfons

i don't think so, i check..

Share this post


Link to post
Share on other sites
fabienfons

it is impossible with loops...

 

In "Grid Columns Standard", when i choose 1 column, it is very very big, and the title is still below the thumbnail..

Maybe it is possible with code, but i don't know how....

Please, help, this is the most important issue on my blog..

Share this post


Link to post
Share on other sites
Simon

loops uses shortcodes, if you want the image above the title you just do something like..

<div class="fabein_loop">
[loops_media size="aspect-thumb"]
[loops_title]
</div>

Share this post


Link to post
Share on other sites
Simon

After a couple of minutes..

565cca28c574f_ScreenShot2015-11-30at22.1

565cca4818988_ScreenShot2015-11-30at22.1

Obviously needs some css classes and some finishing..

 

Share this post


Link to post
Share on other sites
fabienfons

haaaaaaaaaaaaa...

I just understand !!!!

loops uses shortcakes... of course, everything is explained inside the section, i just have to clic on "reference"

I'm really sorry, it is so easy :)

Loops seems to be awesome :)

But there is a little problem, it seem that i have to set an individual loop section for all tags, and all categories...

If i select all post, loops display posts in my tags, that is no cool at all..

Share this post


Link to post
Share on other sites

  • Similar Content

    • oseehys
      By oseehys+
      Hello,
      My Site is showing the dreaded white screen of death i have disabled all plugins, disable theme yet it has not come backup...
      The default wordpress 2015 displays when i activate it, anytime i activate platform 5 it continues to show a white screen 
      I have increased the memory limit, added PHP ini, all the suggested advice i have followed...can someone tell me what to do ASAP 
      Regards


    • jordangross
      By jordangross+
      Here's what I see when I try to download Platform 5:

       
      Is Platform 5 still being supported?  Most of the comments in this forum look a year old or older.
    • fabienfons
      By fabienfons+
       
      Hi,
        Big problem on your website, impossible to download platform 5…   Any idea to solve the issue ? Fabien
    • MrFent
      By MrFent+
      I wanted to share something I'm dealing with on my PageLines 5 website. The website is culturedfoodlife.com. I've seen this issue a few times, but it's always fixed itself without me really doing much, so I don't know how to troubleshoot. It'll start out with my page loading all wonky, due to scripts and stylesheets missing. I look at the page source, and towards the top, I see this line:
      <link rel='dns-prefetch' href='//www.group-ib.ru' />
      I have no idea what that website is, or why it's loading that line of code, and then further down, I see it again as the domain that tries to load all of my pagelines section style scripts:
      <link rel='stylesheet' id='pl-pins-css' href='https://www.group-ib.ru/…/plugins/pl-section-pins/style.css…' type='text/css' media='screen' />
      <script type='text/javascript' src='https://www.group-ib.ru/…/pl-sect…/script.infinitescroll.js…'></script>
      <script type='text/javascript' src='https://www.group-ib.ru/…/plugi…/pl-section-pins/isotope.js…'></script>
      <script type='text/javascript' src='https://www.group-ib.ru/wp-conte…/…/pl-section-pins/pins.js…'></script>
      Here's a screenshot: https://www.screencast.com/t/Nqk9YglUf
      So I get that this is why it's not displaying correctly on the front end, because these style scripts don't exist on group-ib.ru, and I have no idea why it's inserting group-ib.ru instead of my domain culturedfoodlife.com.It makes me think I'm being hacked. This seems to be affecting the styles and scripts of pagelines sections. Other plugins on my site load their scripts with the correct domain name.
       
      When I've seen this in the page, it usually fixes itself after a few minutes, but in this last case, it didn't fix itself until I started disabling plugins. I was trying to see if I could go through each plugin one by one to see if I could fine out anything. I disabled everything but all my pagelines plugins/sections, and the issue went away. Then when I re-enabled everything, the issue was still gone. So now I'm clueless as how to keep testing this. Any suggestions?
      The fact that disabling every plugin EXCEPT the pagelines plugins kind of make me think that the issue isn't with pagelines, but then again when the issue occurs, why does it only affect pagelines sections? Andrew Powers I could use some insight. Thanks.
    • jharri74
      By jharri74
      Hello, I want to create a form where a visitor can submit content/post from the front end. I did something very similar some years back using wp-types, CRED form with pagelines DMS. When i try to set this up in Platform 5, the CRED form generates but doesn't show. I get a blank page. In the browser's console window, i get the error: Uncaught Error: You cannot apply bindings multiple times to the same element.
      When i deactivate the PL plugin and change the theme, the form appears.
      I'm using Wordpress 4.8.2 and PL 5.1.7
      Thanks.
×