How to make MainWrapper not show on specific page
-
Hi im working on a site, and it has a main wrapper for content wich shows in every other page.
Pages and galleries are related to templates and the ones i want to change are on a specific PHP wich code is :
<?php get_header(); $gallery_id = (get_post_meta($post->ID, THEME_METABOX . 'gallery_id', true) == "") ? null : get_post_meta($post->ID, THEME_METABOX . 'gallery_id', true); $gallery_columns = (get_post_meta($post->ID, THEME_METABOX . 'gallery_columns', true) == "") ? 3 : get_post_meta($post->ID, THEME_METABOX . 'gallery_columns', true); $heading_text = (get_post_meta($post->ID, THEME_METABOX . "heading_text", true) == "") ? get_the_title() : get_post_meta($post->ID, THEME_METABOX . "heading_text", true); ?> <!-- start mainWrapper --> <div id="mainWrapper"> </div> <!-- end mainWrapper --> <?php get_template_part('templates/sidewrapper'); ?>
I reduced the content of the wrapper to nothing, but i want to remove aswell the box containing the wrapper.
It would be great if the wrapper was not loading on that specific page or if i can reduce its size to 0px but only on this page..
As i need the content in the other pages, as contact, blog, etc..
is that possible? Can anyone point me out on the exact code to replace it?
If i just delete the
<!-- start mainWrapper --> <div id="mainWrapper"> </div> <!-- end mainWrapper -->
it kills it in every other page.
Thanks a million
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘How to make MainWrapper not show on specific page’ is closed to new replies.