Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #943150

    Hi there,

    Is their a way when you hover on a portfolio item in a portfolio grid, that you see the caption text and not the standard arrow?
    In the settings of the item I filled in the caption and in the preview I see it working. But in the portfolio grid it won’t work. It’s always the arrow.

    How can I achieve this?

    #943958

    Hey Pieter,

    Thank you for using Enfold.

    You can only display the excerpt and title under the preview image by default. If you want the grid content to display over the image, try this css code.

    .grid-content {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      height: 100%;
      width: 100%;
      padding: 20px;
      -webkit-transition: opacity 0.4s ease-in-out;
      -moz-transition: opacity 0.4s ease-in-out;
      transition: opacity 0.4s ease-in-out;
    }
    
    .grid-entry:hover .grid-content {
      opacity: 1;
    }
    
    .grid-entry .image-overlay {
      display: none !important;
    }
    

    Best regards,
    Ismael

    #943990

    Hi Ismael,

    Thanks this works indeed.
    But now is the link gone to show the item in a lightbox?

    Kind regards,
    Vincent

    #944990

    Hi,

    Thank you for the update. Please add this script in the functions.php file to trigger the grid entry link when you click on the grid content container.

    add_action('wp_footer', 'ava_custom_script_trigger_grid_entry');
    function ava_custom_script_trigger_grid_entry(){
    ?>
    <script type="text/javascript">
    (function($) {
        function a() {
            $('.grid-content').on('click', function() {
    			$(this).trigger('av_trigger_grid_image_lightbox');
    		});
    		
    		$('.grid-content').on('av_trigger_grid_image_lightbox', function() {
    			$(this).prev('.grid-image').trigger('click');
    		});
        }
        
        a();
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Ismael

    #945037

    Hi Ismael,

    The previous code about the caption overlay won’t work anymore after an update to the newest Enfold and WordPress version.
    How could I achieve this again in the newest version?
    Is something changed in the naming of the grid elements?
    The caption is now shown underneath the picture again. But with the correct background opacity etc.
    I’m thinking this has something to do with the position relative and absolute style in the parent element.

    Kind regards,
    Vincent

    • This reply was modified 6 years, 7 months ago by Studio55.
    #945238

    Hi,

    Where did you add the css modification? Please add it in the Quick CSS field. Or provide the login details in the private field so we could test the modifications.

    Best regards,
    Ismael

    #945290

    Hi Ismael,

    I have add it to the Quick CSS field. It worked fine before the update.

    Kind regards,
    Vincent

    #945732

    Hi,

    Thank you for the update.

    It was being overridden by another css declaration from the minified css generated by autoptimize. We set an !important rule to the css modifications. You won’t be needing the plugin anymore because the theme has its own minification or compression feature now.

    Best regards,
    Ismael

    #945761

    Hi Ismael,

    Thanks!
    If I add the code to functions.php the clicking event still won’t work.
    Any thoughts?

    Kind regards,
    Vincent

    #946386

    Hi,

    We modified the script and added a few css codes. It should work now.

    Best regards,
    Ismael

    #946431

    Hi Ismael,

    Thanks. The click event works now. But it’s not opening the image in a lightbox but in a separate page.
    Is this not possible?

    Kind regards,
    Vincent

    #947214

    Hi,

    We adjusted the script again. It should trigger the lightbox now. :)

    Best regards,
    Ismael

    #947220

    Hi,

    This is just perfect!
    Many thanks for the help!

    Kind regards,
    Vincent

    #948809

    Hi,

    Awesome! -Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Portfolio item caption in portfolio grid’ is closed to new replies.