-
AuthorPosts
-
October 19, 2021 at 12:19 pm #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_lengthfor 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 ?October 19, 2021 at 12:21 pm #1325559On 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 ?October 19, 2021 at 6:00 pm #1325591Hi,
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ünterOctober 19, 2021 at 9:22 pm #1325601no 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 alwaysOctober 20, 2021 at 1:15 pm #1325725Hi,
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ünterNovember 18, 2021 at 10:00 pm #1329571and how to use it – for setting excerpt_length ?
November 23, 2021 at 4:28 pm #1330149Hi,
Does this help as a frame:
Best regards,
GünterNovember 23, 2021 at 7:27 pm #1330179December 17, 2021 at 5:25 pm #1333279Quick question @guenni007,
how did you get the mobile menu to look like the one on your homepage?
Thank you.
All the best,
TinoDecember 22, 2021 at 9:10 am #1333731Hi @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 -
AuthorPosts
- You must be logged in to reply to this topic.