-
AuthorPosts
-
February 8, 2017 at 12:11 pm #744315
Hello,
I start a projekt with partly a lot of text on some pages. I would like to split the text with the read more button. Unfortunally it’s not working, on the end of the text it shows the numbers but the text is not split where I put the read more button. I send you a link in private content.
Thank you for help
ClaudiaFebruary 13, 2017 at 6:45 am #746135Hey claudipro!
Thank you for using Enfold.
Is this a text block from the advance layout builder? I’m sorry but you can only use the “more” tag in the default editor.
Best regards,
IsmaelFebruary 13, 2017 at 1:20 pm #746356Hi Ismael,
I have to split the text on this page, and on some other pages so that the user don’t have to scroll down for “hours”. The “more” tag is in this case not helping because it is not spliting the page.
There is no posibility to use “nextpage”?
Thank you for helping
ClaudiaFebruary 15, 2017 at 6:30 am #747282Hey!
I’m sorry but the “nextpage” tag is not supported either. You need to use the default editor.
Best regards,
IsmaelFebruary 15, 2017 at 12:01 pm #747431That’s very pitty. There is another solution for this problem? Without AVIA the page will look completley diffrent than the otherones and tha’s not what I want.
Thank you
ClaudiaFebruary 16, 2017 at 8:47 am #747836Hi!
Please try to implement this jquery text toggle instead.
// https://codepen.io/maxds/pen/jgeoA
And a much simpler method:
// http://jsfiddle.net/zA23k/215/
Cheers!
IsmaelFebruary 16, 2017 at 12:31 pm #747919Hi Ismael,
thank you. I was testing both variations but when I put the code in function.php (in my child theme) than I have a completley empty page! Even the backend from wp is just plain white. Maybe I do something wrong?
Greetings
ClaudiaFebruary 17, 2017 at 8:18 am #748254Hi!
Are you referring to the scripts? Please wrap it inside a wp_footer hook. Something like this:
function ava_custom_script_mod(){ ?> <script> (function($){ function a() { $(".more").toggle(function(){ $(this).text("less..").siblings(".complete").show(); }, function(){ $(this).text("more..").siblings(".complete").hide(); }); } a(); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod');
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.