Hide inline content in the post, and only show in popup

Home Forums Easy FancyBox Pro Hide inline content in the post, and only show in popup

This topic contains 2 replies, has 2 voices, and was last updated by  damein liu 2 months, 1 week ago.

  • Author
    Posts
  • #8486

    damein liu
    Participant

    Hi, RavanH,
    I want to know if the plugin can hide the inline content in the post, and only show in popup.

  • #8487

    RavanH
    Keymaster

    Hi Damein, the plugin will hide everything that is inside a div with class “fancybox-hidden”.

    So if you switch to the Text view tab in the post editor and wrap your inline content like this:

    
    <div class="fancybox-hidden">
    <div id="fancyboxID-1" class="hentry" style="width:460px;max-width:100%;">
    ...inline content here...
    </div>
    </div>
    

    Now the inline content (div with ID fancyboxID-1) will now be hidden and only show inside the light box.

    Note: do not give the inline content div itself the class fancybox-hidden because then it will also be hidden inside the light box too.

  • #8490

    damein liu
    Participant

    Thanks a lot!! RavanH.
    It works perfect!
    Awsome plugin and awsome service!!

You must be logged in to reply to this topic.

Site by Pharéo | Hosted on The Permanently Moving Network