Support » Fixing WordPress » Load WP post in modal box with fallback

  • Hi,

    I’m searching a way to load some pages (like contact or newsletter pages) and some single custom post pages in a modal box (so without the header and footer showing), while being able to fallback on the default behavior if JS isn’t enabled.

    So I would have in my code something like :
    <a href="<?php the_permalink; ?>" rel="modalbox"><?php the_title(); ?></a>

    if JS enabled -> load the target page in the modal box with a simple template without header, footer, etc..
    if JS isn’t enabled -> load with the default behavior, reloading the entire page

    Is there a way to do this?

  • The topic ‘Load WP post in modal box with fallback’ is closed to new replies.