Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1325558

    there was a topic here on board – and i think it is not solved! ( Link )
    on Masonry there are different snippets to influence the excerpt_length.
    One is a mighty tool to influence over filter: avf_masonry_loop_prepare one use the filter : avf_masonry_excerpt_length

    for normal blog – without using ALB – the postslider.php seems to be controlling it
    on line 635 : $excerpt_length = 60; is set!

    on line 721 the filter: avf_postgrid_excerpt_length is doing the job on grid blog view
    so something like this will work:

    function avia_change_postgrid_excerpt_length($length){
       $length = 200;
       return $length;
    }
    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);

    BUT: – the excerpt inserted manually on the editor page ( postexcerpt input field ) isn’t influenced on that setting.
    HOW to influence even these excerpts ?

    #1325559

    On that topic mentioned above – my solution to cut the excerpt by word count or something like this :

    function custom_excerpt(){
    ?>
    <script>
    (function($){
    	$(window).on('load' , function(){
    	    $('.slide-entry').each(function() {
    	     	$(".entry-content").text(function(index, currentText) {
    	     		return currentText.substr(0, 20);
    			});
    			// if you like to cut the titles
    	    	$(".entry-title").text(function(index, currentText) {
    	     		return currentText.substr(0, 50);
    			});
    	    });
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_excerpt');

    will work too – but better would be not to manipulate the DOM afterwards – but to directly build an excerpt with given settings.
    so again : HOW to influence even these excerpts ?

    #1325591

    Hi,

    There is currently no way to filter post_excerpt length in postslider.php.

    I will change it that first the content is fetched (either post_content or post_excerpt) and then the filter will be applied.

    I add this to our dev repo and will let you know tomorrow about the final solution.

    Best regards,
    Günter

    #1325601

    no hurry – I just wanted to bring it up once because the topic came up now – and I honestly never checked that the manually pasted excerpts were not affected.
    Many thanks as always

    #1325725

    Hi,

    Es gibt schon das Filter ‘avf_post_slider_entry_excerpt’.

    Das sollte es eigentlich ermöglichen.

    Hab für die nächste Version noch $this als letzten Parameter dazugenommen.

    Best regards,
    Günter

    #1329571

    and how to use it – for setting excerpt_length ?

    #1330149
    #1330179

    Yes

    #1333279

    Quick question @guenni007,

    how did you get the mobile menu to look like the one on your homepage?

    Thank you.

    All the best,
    Tino

    #1333731

    Hi @tinohannes,

    Please go to Enfold theme options > Main Menu > Burger/Mobile Menu > Menu Overlay Style and choose “Sidebar Flyout Menu (Classic)” option :)

    Best regards,
    Yigit

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