-
AuthorPosts
-
July 19, 2014 at 10:33 pm #293471
Hi I want to display a website iframe with lightbox, I check that Enfold use Prettyphoto and I try this code but is not working
Google.com
Apple.com
Twitter.comThis is the error that I get when I try this code https://www.dropbox.com/s/ezgjwvp9qn82jmu/Screenshot%202014-07-19%2016.32.59.png
Can you help me please?
July 20, 2014 at 5:13 am #293510Hi felipemillan!
Thank you for using the theme.
Please edit js/avia.js and look for this code o line 801:
autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"]', videoElements : 'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"]',
Replace it by this:
autolinkElements: 'autolinkElements: 'a[rel^="prettyPhoto"], a[href*="iframe=true"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"]', videoElements : 'a[href*="iframe=true"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"]',
You can now add the url of the external site that you want to open via lightbox plus the ?iframe=true parameter. Something like this:
<a href="http://kriesi.at?iframe=true">Open this</a>
Best regards,
IsmaelJuly 23, 2014 at 6:54 pm #295075is this modification affected by future theme updates?
July 23, 2014 at 9:13 pm #295116Hi,
No, that modification is expected to be included in the next update.
Regards,
JosueJuly 25, 2014 at 12:55 am #295714I like this implementation, and after implementing it we have one issue:
We have multiple links say for a singup form page in the url, and we get 1of5 for example in pp nav. within the modal window (iframe)
other than hiding this using css
div.pp_default .pp_nav { display: none; }
Is there a more elegant way to stop the navigation? Since the link that the button modal refers to is the same each frame of the gallery in this case. Or do you have another suggestion on how I can assign a pop-up modal window for a form page perhaps. And have link buttons on the same page that go to the link. ie cooking class one – (signup button) cooking-class two (signup-button) etc..
This is what I am using:
[av_button label='sign up' link='manually,http:XXX/gabrisa/cooking-classes-positano-signup/?iframe=true&name=signup1&width=600px' link_target='' color='black' custom_bg='#444444' custom_font='#ffffff' size='small' position='right' icon_select='no' icon='ue800' font='entypo-fontello' custom_class='']
How can I make it so that each of the 5 buttons on a page does not trigger a gallery style counter in the iframe. The links are all the same so this is not ideal.
Cheers
July 25, 2014 at 12:59 am #295720I did the above, and it seems we cannot set height and width in the new lightbox plugin in the same way as prettyphoto. Any ideas?
July 25, 2014 at 1:15 am #295728I set the width without an issue, I however left the height untouched ( auto). My issue is the gallery next buttons that go to the same link.
July 30, 2014 at 10:55 pm #297930Hi!
Do you have an example we can see? We will see if there is anything we can suggest as a fix.
Cheers!
Devin -
AuthorPosts
- You must be logged in to reply to this topic.