Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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
    Claudia

    #746135

    Hey 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,
    Ismael

    #746356

    Hi 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
    Claudia

    #747282

    Hey!

    I’m sorry but the “nextpage” tag is not supported either. You need to use the default editor.

    Best regards,
    Ismael

    #747431

    That’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
    Claudia

    #747836

    Hi!

    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!
    Ismael

    #747919

    Hi 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
    Claudia

    #748254

    Hi!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.