• Resolved greenday

    (@greenday)


    Hi thanks for the great plugin. Please have a look at my page, and click on any of the links. It opens a custom post type page, but the whole page including the header and footer which i dont want.

    On the custom post type template, i have put the content which i would like shown between a div with the id of ‘modal-ready’ please see below code. I have ‘Use Rest API Method’ not ticked in the settings.

    <?php
    /**
     * The template for displaying Hardwoods
     */
    
    get_header();
    ?>
    
    <div id="modal-ready">
    
    <div class="wrap clearfix medpad">
    
    <div class="section group">
    <div class="col span_4_of_12 maincol">
    <?php if (has_post_thumbnail( $post->ID ) ){ ?>
    <?php the_post_thumbnail('pagebanner', array('class' => 'pageheadingbg'));?>
    <?php  } ?>
    </div><!-- END span_4_of_12 -->
    
    <div class="col span_8_of_12 maincol">
    <main role="main">
    <p><?php the_title(); ?></p>
    <p><?php the_field('durability'); ?></p>
    <p><?php the_field('colour'); ?></p>
    <p><?php the_field('sizes_available'); ?></p>
    </main>
    </div><!-- END span_8_of_12 -->
    
    </div><!-- END group -->
    </div> <!-- end Wrap -->
    </div><!-- #modal-ready -->
    
    <?php
    get_footer();
    • This topic was modified 5 years, 5 months ago by greenday.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello – I am having this same issue – yours is marked resolved – would you mind sharing what resolved it?

Viewing 1 replies (of 1 total)
  • The topic ‘Modal Opens whole page not just Content’ is closed to new replies.