Tagged: ajax portfolio
-
AuthorPosts
-
December 6, 2015 at 8:58 am #547576
Hi there,
I have an ajax portfolio up on my page. When I click on a thumbnail, i dont want the expanded image to link anywhere. How do I do this?
Thanks
December 6, 2015 at 8:17 pm #547681Hey janicenisha!
Please try use the following JS code:
$(‘.portolio-preview-list-image’).click(function () {return false;});
as a JS script, and let us know if that helps.
Actually, remove the link from the image class.Cheers!
BasilisDecember 7, 2015 at 2:41 am #547729Hi Basilis,
Thank you for your reply, sorry to ask, but where do I put this code…? Am using a child theme btw.
December 7, 2015 at 11:42 pm #548412Hi,
Try adding this at the very end of your theme / child theme functions.php file:
function add_custom_script(){ ?> <script> (function($){ $(window).load(function() { $(‘.portolio-preview-list-image’).click(function () {return false;}); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');
Regards,
JosueDecember 8, 2015 at 11:10 am #548635Hi Josue,
Thanks for replying, unfortunately the code gave me this error on the whole site.
Fatal error: Cannot redeclare add_custom_script()
December 8, 2015 at 11:28 am #548643Hey Josue,
This seemed to do the trick :)
div .portfolio-preview-image {
pointer-events: none;}Thanks again!
December 8, 2015 at 11:39 am #548650You are welcome, glad to help :)
Regards,
JosueDecember 13, 2015 at 4:35 pm #551726Hi Josue/Basilis,
Is there any way to get each portfolio to expand on its own location instead of expanding at the top? This is to avoid lots of scrolling when on mobile when selecting different portfolios.
December 13, 2015 at 4:37 pm #551729Hey!
Try the following:
https://kriesi.at/support/topic/ajax-portfolio-show-at-current-location/#post-173348Actual line numbers may have changed, try doing a Search in the file.
Cheers!
JosueDecember 13, 2015 at 5:00 pm #551738Hi Josue,
Thanks for the quick reply. I did try it out, the thumbnails don’t scroll anymore, but the portfolio still expands on the top, it expands above the rest. I would still need to scroll to see the expanded image. Is there any way for it to expand at the thumbnail location itself?
Thanks again.
December 13, 2015 at 11:35 pm #551837Hello!
It is possible but it would require a heavy modification to the theme, unfortunately that’s beyond our support scope. You can request a customisation quote from a third-party provider here.
Regards,
JosueDecember 14, 2015 at 5:28 am #551930Hi Josue,
I see.. ok thanks anyways, you guys are always top notch when it comes to support
-
AuthorPosts
- The topic ‘Remove link from Ajax portfolio expanded image’ is closed to new replies.