Tagged: x
-
AuthorPosts
-
February 4, 2017 at 8:37 am #1357887
xoaParticipantHello,
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
February 4, 2017 at 2:26 pm #1358047
RadModeratorHi 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.
February 6, 2017 at 3:20 am #1359369
xoaParticipantThis 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?
February 6, 2017 at 3:30 am #1359376
ChristianModeratorPlease add the code below in your Appearance > Customize > Custom > Global CSS
.x-navbar .desktop .x-nav li>a>span:after { line-height: 1px; }Thanks.
February 6, 2017 at 3:51 am #1359395
xoaParticipantYou guys are just great, best theme and best support!
February 6, 2017 at 3:52 am #1359397
Paul RModeratorThank you for your kind words!
Have a nice day! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1357887 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
