WordPress.org

Ready to get started?Download WordPress

Forums

Load WP post in modal box with fallback (1 post)

  1. Rémy
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic