Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1357887
    xoa
    Participant

    Hello,

    in my menu, i linked two webcams, so I put the webcam image directly as a individual link in my menu. When I click it, the image opens in a blank page. Is it possible to open it in a lightbox instead? Is there something I can put in the HTML-attribute field?

    website: http://www.soelvahof.com see -> KALTERN -> WEBCAM KALTERN ZENTRUM or WEBCAM KALTERER SEE

    #1358047
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Please add this code to your child theme’s functions.php

    add_action('wp_footer', 'webcam_lightbox', -999999);
    
    function webcam_lightbox () {
    
    echo do_shortcode('
    [lightbox selector=".x-nav-wrap.desktop #menu-item-1087 a"]
    [lightbox selector=".x-nav-wrap.desktop #menu-item-1096 a"]
    [lightbox selector=".x-nav-wrap.mobile #menu-item-1087 a"]
    [lightbox selector=".x-nav-wrap.mobile #menu-item-1096 a"]
    
    ');
    
    }

    Hope this helps.

    #1359369
    xoa
    Participant

    This works very well. Thanks a lot.

    One quick question regarding the menu. As you can see, the menu elements using a sub-menu (KALTERN, INFOS) are out of the line by 1px. Why and how to fix this? (See image below) Or you think its better to use on of the menu addons to have more fexibillity?

    #1359376
    Christian
    Moderator

    Please add the code below in your Appearance > Customize > Custom > Global CSS

    .x-navbar .desktop .x-nav li>a>span:after {
        line-height: 1px;
    }

    Thanks.

    #1359395
    xoa
    Participant

    You guys are just great, best theme and best support!

    #1359397
    Paul R
    Moderator

    Thank you for your kind words!

    Have a nice day! 🙂

  • <script> jQuery(function($){ $("#no-reply-1357887 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>