Jump to content
Sign in to follow this  
iliaboti

Feature Link URL to open a FancyBox with the contents of a post.

Recommended Posts

iliaboti    0
iliaboti

Hi, how can I make the Feature Link URL to be opened in a Fancy Box in the latest version of the Platform Pro theme? The URL used points to specific posts (only the post content, having removed all other page modules, i.e. menus, sidebars, navigation etc). I have tried easy FancyBox and FancyBox for Wordpress with no results. Note that in the previous version of the theme I could do this. It worked (almost) properly with Chrome but not well on Safari and Firefox. Cheers, giannis-

Share this post


Link to post
Share on other sites
Rob    547
Rob
Have you looked at NextGen? That has a capacity to open a lightbox. As for opening a lightbox from the feature slider, I'm at a loss as this would likely require some heavy duty coding above my skills.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
iliaboti    0
iliaboti
Thanks a lot for the reply. I had a look at NextGen however it seems it cannot do what I really want. I appreciate your feedback though.

Share this post


Link to post
Share on other sites
kastelic    6
kastelic
I think with javascript you could implement a roundabout way of doing this. What is the class or id that needs to be added to an element to make it open with your plugin? If I could know that I could tell you how to remove the default functionality of those links and add that class or id.

Share this post


Link to post
Share on other sites
iliaboti    0
iliaboti
According to the documentation the plugin needs class fancybox to the link in order for the fancybox to be triggered. Thanks a lot for the answer. It seems very good to me. If you could also tell me how to do this, I think that this could give the solution.

Share this post


Link to post
Share on other sites
kastelic    6
kastelic
Hi, you can paste this into Custom Code -> Footerscripts: [code] [/code] It will add the class "fancybox" to the feature link in Feature number 5. Change the feature_5 part to whichever feature you are targeting. If you need to change the 'href' as well then replace that line with this line: [code] jQuery('#feature_5 .flink').addClass('fancybox').attr('href','#something'); [/code] The "#something" can be any url, to a webpage or an image or whatever you need.

Share this post


Link to post
Share on other sites
iliaboti    0
iliaboti
Hi again, I need to have this effect to all features that I have on a page (actually on all pages). Not just a specific feature. I have also tried for specific features i.e. #feature_1 but it did not work. An example page that I want this is: http://www.bartesera.gr/bartesera/featured-events/ Clicking "More" on any of the features should show the post in a fancybox and not in a new page.

Share this post


Link to post
Share on other sites
catrina    103
catrina
The #feature_1 didn't work because your feature slides actually have different selectors: #feature_280 = First slide #feature_372 = Second slide #feature_404 = Third slide

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
iliaboti    0
iliaboti
Dear all, thanks a lot for the feedback. I "kind of" made it work for all features by adding the following to the Footerscripts: Now my problem is that this only works properly in Chrome. In Safari and Firefox clicking on "More" opens a blank page. I am not sure if this is related to Platform pro, but I would appreciate any ideas.

Share this post


Link to post
Share on other sites
iliaboti    0
iliaboti
Just to update you. The problem with firefox and Safari was due to some google analytics plugin. I have corrected this and now everything works! Thanks everybody for the feedback!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×