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

    • 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.
    • Bill Bernat
      By Bill Bernat+
      Hi, I'm using a series of Loops sections on our PL5 site (insights.adaptiva.com), and on one section, I'd ideally like the loops to link to external URLs that are defined in the post in WordPress. Is that possible?
    • uniworks
      By uniworks+
      Running WordPress 4.8.1  Unable to update to new versions of Pageline plugins (6 total). 
    • fabienfons
      By fabienfons+
      Hi,
      I have a big issue on my website with platform 5 (www.youtips.com)
      Very often, some pages don't display correctly, i need to refresh the page to view the correct display.
      Same thing on safari or chrome...
      Please, heeeeeeelp !
      Fabien
    • fabienfons
      By fabienfons+
      Hi,
      In Divi (elegant theme), there is a fantastic module for aweber webform.
      Do you plan to build one for pagelines ?
      Fabien
×