WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Specifying fancybox size when opening from Menu (2 posts)

  1. strangebiscuit
    Member
    Posted 10 months ago #

    Is there any way to specify the window size when I want easy fancybox to be called from a link in the navigation menu?

    I've got the window working by typing "fancybox" in the "CSS Classes" field in the menu item (under Appearance > Menus). But if I try to specify size like with the class (like "fancybox {width:800,height:600}")...the formatting gets removed when I click save and ends up as "fancybox width800height600" which obviously doesn't work.

    Is there some work-around for this? Or am I doing something wrong?

    Thanks for your help!

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

  2. RavanH
    Member
    Plugin Author

    Posted 10 months ago #

    Hi strangebiscuit,

    It seems there is nothing you can do about the curlies bieing stripped from the menu item class :(

    Are you linking to an image from the menu?

    If not, then you are using the wrong class. Use fancybox-inline for inline content, fancybox-iframe for a complete web page, etc... And make sure the corresponding option is activated on Settings > Media.

    After that, you can define a default size there on Settings > Media which might be the only option you have to control the size of FancyBox from the menu.

    If you ARE linking to an image, you could still use the fancybox-iframe class and use its default size to control the FancyBox frame :)

Reply

You must log in to post.

About this Plugin

About this Topic