Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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

    #547681

    Hey 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!
    Basilis

    #547729

    Hi Basilis,

    Thank you for your reply, sorry to ask, but where do I put this code…? Am using a child theme btw.

    #548412

    Hi,

    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,
    Josue

    #548635

    Hi Josue,

    Thanks for replying, unfortunately the code gave me this error on the whole site.

    Fatal error: Cannot redeclare add_custom_script()

    #548643

    Hey Josue,

    This seemed to do the trick :)

    div .portfolio-preview-image {
    pointer-events: none;}

    Thanks again!

    #548650

    You are welcome, glad to help :)

    Regards,
    Josue

    #551726

    Hi 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.

    #551729

    Hey!

    Try the following:
    https://kriesi.at/support/topic/ajax-portfolio-show-at-current-location/#post-173348

    Actual line numbers may have changed, try doing a Search in the file.

    Cheers!
    Josue

    #551738

    Hi 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.

    #551837

    Hello!

    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,
    Josue

    #551930

    Hi Josue,

    I see.. ok thanks anyways, you guys are always top notch when it comes to support

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove link from Ajax portfolio expanded image’ is closed to new replies.