Hi,
How to remove excerpt from archives pages with the dots (read more) too?
I tried every piece of code found in this forum and no one works.
It seems that the theme code has been updated and the ones provided in the forum are not working anymore (old)
Nothing in the documentation too
Can you help?
Thanks
Hey yoyo,
Can you provide a link to your archive page?
Best regards,
Jordan Shannon
Hi Jordan,
I uninstalled the theme, i’ve been looking for a solution for more than 24 hours and i found a “solution”,
by removing a line somewhere inside this folder: \enfold\config-templatebuilder\avia-shortcodes\contentslider\
I was looking for a better solution to put inside my child theme’s functions.php file, and not using css.
Anyway Thank you for help Jordan
Have a nice day
Hi,
Sorry for the late reply, Try adding this code to the end of your functions.php file in Appearance > Editor:
function remove_excerpt_from_archive(){
?>
<script>
(function($){
$(document).ready(function(){
$('.archive').each(function() {
$(this).find( '.entry-content' ).remove();
$(this).find( '.big-preview' ).remove();
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'remove_excerpt_from_archive');
It will remove the excerpt and featured image from the archive pages and leave the title and meta, I was not sure if you wanted the meta or not, here is a screenshot:
Best regards,
Mike