Tagged: enfold
-
AuthorPosts
-
June 9, 2015 at 12:58 am #456397
I want both the title and the excerpt to be clickable in the portfolio grid:
wordpress.friesianconnection.com/sale-horses/
How would I got about doing that?
June 9, 2015 at 5:14 pm #456801Hey Andrea!
Please refer to my post here – https://kriesi.at/support/topic/portfolio-text-field-link-possible/#post-384492
Regards,
YigitJune 9, 2015 at 6:10 pm #456839Hi Yigit,
Using this code works great:
function add_custom_div(){
?>
<script>
jQuery(“.grid-content”).click(function(){
window.location = jQuery(this).find(“a:first”).attr(“href”);
return false;
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_div’);However, I wanted the portfolio to open as AJAX on the page
June 9, 2015 at 6:14 pm #456841Hi!
Which of the enfold layout you want to copy as functionality?
Best regards,
BasilisJune 9, 2015 at 6:46 pm #456864Hi Basilis,
I’m using the Portfolio Grid Content Element – I want each section to open using AJAX. Before if you clicked the title it would do that, but the problem was that it was only the title that was clickable versus the entire thing. Now everything is clickable but the AJAX functionality went away.
June 13, 2015 at 6:05 pm #458806Hi guys,
Any insight into having the entire portfolio grid clickable AND have it open on the page with AJAX instead of on a new page?
Best!
June 15, 2015 at 11:41 am #459226Hi!
For clarification, you want to open the AJAX box when the excerpt is clicked. Is that correct? Maybe, this will work:
function ava_trigger_isotope(){ ?> <script> jQuery('#top .isotope-item').find('.grid-content').on('click', function() { jQuery(this).prev('.grid-image').trigger("click"); }); </script> <?php } add_action('wp_footer', 'ava_trigger_isotope');Best regards,
IsmaelJune 15, 2015 at 4:38 pm #459466That works perfectly! Thank you!
-
AuthorPosts
- The topic ‘Make excerpt clickable in portfolio’ is closed to new replies.
