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

    Hey,

    I created a tab section, which can be controlled through the navigation or through images in the gallery (custom link).
    This has worked flawlessly so far, after the WordPress 6 update the custom links in the gallery no longer work in the second language (Italian).
    Please support, thank you!

    Best regards,
    Soltner

    #1353856

    Hey soltner,

    Thank you for the inquiry.

    Did you try resetting the gallery’s Advanced > Link Settings > Image Link to the second option (Use custom link)? Default is set to lightbox linking.

    Best regards,
    Ismael

    #1353986

    Hey Ismael,

    Thanks for the feedback.
    Yes, i used the same setting (with adjusted urls) for Italian, but it only works in German.
    A problem with wpml?

    Best regards,
    Soltner

    #1354088

    Hi,

    Thank you for the inquiry.

    Where did you place the scrollToTab script or function? We checked the functions.php file in the child theme but we didn’t find the function there.

    Best regards,
    Ismael

    #1354353

    Hi Ismael,

    I added the following script/function to a code module below the gallery – see screenshot

    <script>
    (function($) {
    function scrollToTab(s, e,) {
    $(s).on(e, function(event) {
    var anchor, loc, cur, hash, tab, parent, pos;

    if( e == ‘load’ ) {
    loc = window.location.hash;
    hash = loc;
    } else {
    loc = $(this).attr(‘href’);
    hash = loc.substring(loc.indexOf(‘#’));
    }

    tab = $(‘.av-section-tab-title[href=’+ hash +’]’);
    parent = tab.parents(‘.av-tab-section-outer-container’);
    pos = parent.offset();

    tab.trigger(‘click’);

    if(hash) {
    setTimeout( function() {
    $(window).scrollTop( pos.top – 100 )
    }, 1000 );
    }
    });
    }

    scrollToTab( ‘.menu-item a’, ‘click’ );
    scrollToTab( window, ‘load’ );
    })(jQuery);
    </script>

    best regards,
    Soltner

    #1354660

    Hi Ismael!

    i put the code from here in the functions.php – now works!

    Thank you very much for your help :-)
    best regards,
    Soltner

    #1354741

    Hi,

    Glad to know that the script is now working properly. Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Gallery custom link’ is closed to new replies.