Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1015289

    Hi dear Kriesi team,

    sorry for this new thread. The old thread is closed already.
    Mike and Victoria, you helped me with this issue. Everything on the site works and looks fine except for this:

    https://kriesi.at/support/topic/enfold-read-more-link-in-masonry-portfolio/#post-1014235

    How can this be solved?
    Thank you very much for your help!

    Best regards,
    Thomas

    #1015645

    Hey Ink_Eye,

    I fixed it by adjusting the code in the functions.php to:

    
    // masonry read more
    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
      $(window).on('av-height-change', function() {
        $('.av-caption-style-overlay').each(function() {
          var more = $(this).find('.av-masonry-read-more');
          var cont = $(this).find('.av-masonry-entry-title');
      
          if( more.length >= 1 )
    	  { 
    		  cont.css('opacity','1');
    		  return;
    	  }
    		
          $('<div class="av-masonry-read-more avia-button">mehr erfahren</div>').insertAfter(cont);
    		cont.css('opacity','1');
        });
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');
    

    Best regards,
    Peter

    #1015690

    Hi Peter,

    thank you very much!

    Best regards, Thomas

    #1015692

    Hi,

    Glad I could help you :)

    Best regards,
    Peter

    #1230338

    Hi Peter,

    I hope you are fine! I used this code on my website and it worked pretty well for two years. Until I made some updates and fixed some other issues a few days before.

    I had somme issues with the child theme. So I copied the code in the functions file of the main theme. I prefer to use the child theme again, if possible. What can I do to get the read more again?

    If it is possible to use the child theme again I would like to copy all of the custom css code to the child theme also.

    Best regards, Thomas

    #1230652

    Hi Ink_Eye,

    Of course, you can copy all the additional coding into the child theme, not just can, but should totally do so.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1231139

    Hi Victoria,

    yes, I did it before. And I would like to do it again. I had some Issues with that. For example the font did not get loaded. I can do it again. I hope that it will fix the “read more” issue. It worked before, but now not anymore.

    I did it like in another post in this forum:
    Structure in the child theme:
    css/custom.css

    and put in the child theme functions php a line of code to tell the theme that there is a custom.css file.

    Is this correct?

    Best regards, Thomas

    #1232856

    Hi,

    Thank you for the update.

    You don’t need to copy the custom.css file in the child theme because all css modification can be added in the child theme’s style.css file instead. Let us know if that helps.

    Best regards,
    Ismael

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