Forum Replies Created
-
AuthorPosts
-
June 30, 2015 at 12:37 pm in reply to: How integrate Lightbox in the nav menu (that link to an external page) #70546mdexleplateauMember
Hi.
I can guess yes but can you give some advices about that ?
I’m using theme Forest X and to put their lightbox in the menus, as you, they said that i’ll need to ass some code to the child theme.
“add_action(‘wp_footer’, function() {
?>
<script type=’text/javascript’ src='<?php echo get_site_url(); ?>/wp-content/plugins/x-shortcodes/js/dist/site/vendor-ilightbox.min.js’></script>
<script id=”x-responsive-lightbox-1″>jQuery(document).ready(function(){jQuery(‘.show-lightbox a’).iLightBox({skin: ‘light’,overlay: {opacity: 0.875,blur: true},styles: {prevScale: 0.75,prevOpacity: 0.75,nextScale: 0.75,nextOpacity: 0.75},path: ‘horizontal’,controls: {thumbnail: false}});});</script><script id=”x-responsive-lightbox-2″>jQuery(document).ready(function(){jQuery(‘.show-lightbox a’).iLightBox({skin: ‘light’,overlay: {opacity: 0.875,blur: true},styles: {prevScale: 0.75,prevOpacity: 0.75,nextScale: 0.75,nextOpacity: 0.75},path: ‘horizontal’,controls: {thumbnail: false}});});
</script>
<?php
});
It’s working well but not with IOS. It’s why I bought your plugin actually because I saw it was working on IOS (Even if I took time to understand how)
I guess it’s possible to use a code like that too. ?
June 29, 2015 at 10:17 pm in reply to: How integrate Lightbox in the nav menu (that link to an external page) #70544mdexleplateauMemberHi.
Maybe you can answer on something.
When I’m creating a lighbox with [wp_lightbox_display_external_page] to show an external page it’s working very well even on IOS.
So, I would like to use this code from the Nav Menu.
I tried to use “wp_lightbox_prettyPhoto” with “?iframe=true” in the link like you said. but the result is very ugly on IOS.
Can you just tell me how I can use [wp_lightbox_display_external_page] in the wordpress menu ?
June 25, 2015 at 10:58 am in reply to: How integrate Lightbox in the nav menu (that link to an external page) #70542mdexleplateauMemberHi, Thx you.
It’s working now. I saw the documentation before but nothing about ?iframe=true.
So, now I have a question.
I don’t know why but if i’m trying to open it on Iphone, the lighbox go on the top right and a part of the lightbox is croped. All content is visible but nothing is centered.
again, thx for your help
good day
-
AuthorPosts