Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1168754

    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

    #1168880

    Hey yoyo,

    Can you provide a link to your archive page?

    Best regards,
    Jordan Shannon

    #1168899

    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

    #1169070

    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:
    2019-12-29-072808

    Best regards,
    Mike

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