-
AuthorPosts
-
November 14, 2014 at 12:45 pm #351208
Hi!
Would it be possible to have lets say the masonry blog display open up the single.php post inside a lightbox instead?
November 14, 2014 at 1:02 pm #351214I read in some other post that in js/avia.js ?iframe=true had to be added, this seems to be added to version 3.. so i guess i need to find the post href in masonry right? and append ?iframe=true to it?
- This reply was modified 10 years ago by marcelmontel.
November 14, 2014 at 3:07 pm #351259I tried on a page from the menu to open in a lightbox but it seems like a get a trailing slash after the pagename.. eg:
https://kriesi.at/support/topic/how-to-use-iframes-with-prettyphoto/
my link looks like:
a href=”//mysite.com/timeline?iframe=true&width=80%&height=80%”” rel=”“prettyPhoto””
i tried with rel=lightbox as well..when i click on the link i get redirected to the timeline page and the url becomes
http://mysite.com/timeline/?iframe=true&width=80%&height=80%
please advise :)
- This reply was modified 10 years ago by marcelmontel.
November 15, 2014 at 6:50 am #351700Hi!
Thank you for using Enfold.
Yes, it is possible with the portfolio items but the page won’t look good on the lightbox container. Edit a portfolio item then look for the Overwrite Portfolio Link setting. Set it to define custom link. Use the url of the single post or portfolio page, add the ?iframe=true attribute in the end. Something like this:
http://www.mysite.com/portfolio-item/single-portfolio-custom-link?iframe=true
Use the masonry element to display the portfolio entries.
Cheers!
IsmaelNovember 15, 2014 at 4:10 pm #351821Thank you Ismael.
My Masonry currently displays blog posts, so what i was hoping to do is to add the link for a lightbox when u click on the blog entry instead of having it go to the single.php, so what would i need to change then? I assume its in avia-templatebuilder ?
November 16, 2014 at 5:31 pm #352068Nevermind i added the class of another lighbox myself into the template and disabled lightbox in avia.js
Would be nice to do it all within the theme though.
BR
MNovember 17, 2014 at 2:44 pm #352426Hi!
Glad you figured it out. I’m sorry but this feature is not available as a default option on the theme yet. You can vote or request for the feature on our Feature Requests page.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.