Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #640285

    Hi,

    I would like to make also the extract s a link. I am using a child theme as I expect code, not only css changes, are needed.
    Is this doable?

    Best regards

    #640429

    Hey nkarkine,

    Can you please elaborate on the changes you would like to make? A link to your page where you would like to make changes would help as well :)

    Best regards,
    Yigit

    #640457

    I want to turn the portfolio grid from (1) to (2), already done css changes but I need the “button” to work. Pls see img link in private. Does that explain my goal?

    #640682

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #640717

    Ok

    #641178

    Hi,

    Thank you for the info. We added this code in the functions.php file:

    // grid link
    add_action('wp_footer', 'ava_custom_script_gl');
    function ava_custom_script_gl(){
    ?>
    <script>
    (function($){
    	function b() {
    		$('.grid-entry').each(function() {
    		var excerpt = $(this).find('.grid-entry-excerpt'),
    			link = $(this).find('.grid-image').attr('href');
    
    			excerpt.on('click', function() {
    				window.location.href = link;
    			});
    		});
    	}
    
    	b();
    })(jQuery);
    </script>
    <?php
    }

    And the following css code in the style.css file of the child theme:

    .grid-entry-excerpt.entry-content {
        cursor: pointer;
    }

    Best regards,
    Ismael

    #641433

    Thanks. Great!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio grid extract to link (as well as the header and image)’ is closed to new replies.