WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
Show PDF in a popup using main menu and your plugin (3 posts)

  1. AutomatedKid
    Member
    Posted 1 year ago #

    Okay, I've figured out how to show a popup page using the CSS field via the menu.

    But how do I show a pdf file using your plugin, where clicking a menu item will show a popup of the pdf? Or, better yet, is there a way to show the "text only" from a page I created, thereby skipping the pdf idea altogether, and not an inline of the whole web page??

    All I want to do is be able to create a list of hyperlinks, all organized to my liking, where a user will be able click on the menu, a popup will show using your plugin, and then the user can choose the hyperlink and it will take them to that specific page. Simply, right? ;)

    Appreciate any responses. Hopefully my stupidity will help others as well.

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    In theory, this can be done. In practice, it will be difficult. There are different routes you can take but each one has its downsides.

    In your case, wanting to open up page content inside an iframe from the main menu, you'd need to start modifying your theme templates so that when showing single page/post content, there will be no header/menu/sidebar/etc. shown with it. This will be making it look good inside the FancyBox iframe. But then, this method is not very search engine friendly in the sense that when visitors arrive via a search engine straight on a post or page, they will not be able to browse to other pages because there is no menu.

    Unless... well, it's difficult to pull off.

  3. AutomatedKid
    Member
    Posted 1 year ago #

    I had a feeling that was going to be the case. Oh well.

    Ravan, what about just showing a pdf file using your plugin? I could easily create a pdf with links in it and do the same thing. Plus, then I can share the pdf within the wp network and setup a link on each site, saving me time in the long run which would be a nice thing.

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags