Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #939369

    Hi guys! I’m using the easy slider and have the slide linking to a post. However the slide is only clickable in the upper right hand corner where the text is. I would like the entire slide to be clickable. Can someone help me with this? Thank you in advance, you guys are the best.

    #939499

    Hey bobfurgo,

    Please refer to the following:

    https://kriesi.at/support/topic/make-fullscreen-slider-image-clickable/#post-226684

    This may very well be a premium feature.

    Best regards,
    Jordan Shannon

    #944173

    Hi jordan,

    The slider already has the ability to have a link across the entire slide I believe. I think the location of my link is a bit off because i’m using CSS to customize the text. Would you mind looking into this a bit further for me? Thank you so much in advance.

    #945228

    Hi,

    Thank you the update. Use this script to trigger the link when you clicked on the slider.

    add_action('wp_footer', 'ava_custom_script_slider_link');
    function ava_custom_script_slider_link(){
    ?>
    <script>
    (function($) {
        $('.avia-slideshow li').on('click', function() {
            window.location.href = $(this).find('> a').attr('href');
        });
    })(jQuery);
    </script>
    <?php
    }

    And then use this code in the Quick CSS field.

    .avia-slideshow li {
        cursor: pointer;
    }

    Best regards,
    Ismael

    #945436

    Hi Ismael!
    Thanks for your reply. Where do I enter the first script you sent over? Sorry if the answer is obvious!

    #945470

    Hi,

    The first script can be added to the functions.php file.

    Best regards,
    Jordan Shannon

    #945516

    You guys are awesome, thank you!

    #945526

    Hi,

    No problem at all. Did you need further help with this topic or shall we close.

    Best regards,
    Jordan Shannon

    #949162

    Hi guys! So this script works great but it’s affecting the video sliders on my site as well. Is there a way to make it where it only applies to that particular easy slider on the homepage, and not the rest throughout the site?

    #949605

    Hi,

    I was able to play the video on this page. Are you not able to?

    Best regards,
    Jordan Shannon

    #949806

    Hello, I actually took the script out so that it would stop redirecting you to 404 error pages when clicking on the other videos. Is there a way to isolate this to just one slider?

    #950907

    Hi bobfurgo,

    Can you try to use this script, this should work only on the single page you gave (in private content):

    add_action('wp_footer', 'ava_custom_script_slider_link');
    function ava_custom_script_slider_link() {
        if( is_single( '689' ) ):
        ?>
        <script>
            (function($) {
                $('.avia-slideshow li').on('click', function() {
                    window.location.href = $(this).find('> a').attr('href');
                });
            })(jQuery);
        </script>
        <?php
        endif;
    }

    Let us know if that helps, if you plan on adding more of the same slider on that page, then the code given would apply on others as well.
    If that’s the case then use the code given by Ismael then enable Custom CSS Classes: https://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    then use a unique class name then replace this class name .avia-slideshow to .myclass. Hope this helps :)

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.