Trying to create Salespage in Udesign: Need to remove header + sidebar :D

Discussion in 'WordPress' started by rob33, Mar 30, 2016.

  1. #1
    Hi all,

    Bit of a cowboy with php/html.. I deleted get_footer(); and that removed the footer but doesn't behave well when removing header plus need to remove sidebar as creating salespage.

    Any easy fix perhaps :D

    Thanks all xx

    ----------------------------------------------------------------------------

    <?php /* Template Name: Salespage xxxxxxx */ ?>

    <?php
    /**
    * @package WordPress
    * @subpackage U-Design
    */
    if ( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

    get_header();

    $content_position = ( $udesign_options['pages_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16';
    if ( $udesign_options['remove_default_page_sidebar'] == 'yes' ) $content_position = 'grid_24';
    ?>

    <div id="content-container" class="container_24">
    <div id="main-content" class="<?php echo $content_position; ?>">
    <div class="main-content-padding">
    <?php udesign_main_content_top( is_front_page() ); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    <?php udesign_entry_before(); ?>
    <div class="entry">
    <?php udesign_entry_top(); ?>
    <?php the_content(__('<p class="serif">Read the rest of this page &raquo;</p>', 'udesign')); ?>
    <?php udesign_entry_bottom(); ?>
    </div>
    <?php udesign_entry_after(); ?>
    </div>
    <?php ( $udesign_options['show_comments_on_pages'] == 'yes' ) ? comments_template() : '';
    endwhile; endif; ?>
    <div class="clear"></div>
    <?php udesign_main_content_bottom(); ?>
    </div><!-- end main-content-padding -->
    </div><!-- end main-content -->

    <?php if( !$udesign_options['remove_default_page_sidebar'] == 'yes' ) { get_sidebar(); } ?>
    </div><!-- end content-container -->

    <div class="clear"></div>

    <?php


    ----------------------------------------------------------------------------
     
    rob33, Mar 30, 2016 IP
  2. rob33

    rob33 Well-Known Member

    Messages:
    477
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Actually - removed side bar using fullpage width so just header left :D
     
    rob33, Mar 31, 2016 IP
  3. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #3
    I would sorta need to see what you are doing but you can try this in the custom CSS area. That works when I try it on the demo.

    #top-wrapper {
    background-color: #fcfcfc;
    display: none;
    }
     
    Nigel Lew, Mar 31, 2016 IP
  4. rob33

    rob33 Well-Known Member

    Messages:
    477
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Thanks - but just want to remove header from one page - so created new php page in the theme.
    Need the site to remain as normal outside this salespage.
     
    rob33, Mar 31, 2016 IP