Wordpress- Have a page with no sidebar

by LeonT
4 replies
  • WEB DESIGN
  • |
Is is possible to have a page within a wordpress blog that will not have a side bar, instead have 1 wide space for writing...?
#page #sidebar #wordpress
  • Profile picture of the author Sarah Harris
    yes, by using custom page templates Pages WordPress Codex
    Signature

    I love what I do and make money every day. It is as easy as 123. If you are interested in finally making money online, and you want to work with an amazing mastermind group that will be with you every step of the way showing you how let me know...

    Advertising your business doesn't have to take you all day... http://myadposted.com simple amazing customer support and personalized service.

    {{ DiscussionBoard.errors[2101152].message }}
  • Profile picture of the author Leslie B
    In some themes you will have full width page templates, in others you need to create those yourself. When you have a theme that doesn't deliver such templates you will need to know a bit of coding to create one. If you don't, I'd recommend hiring someone that does and outsource the job.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2101693].message }}
  • Profile picture of the author promo_guy
    This is very easy to do but you'll have to experiment with the code below to make sure it works.

    First, you create a new page. You can start with a notepad/.txt file.

    Open a new text file, past in at the top:

    <?php
    /*
    Template Name: Fullwidth Page
    */
    ?>

    then after the above code, paste in something like:

    <?php get_header(); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h2><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <?php endwhile; else: ?>
    <?php endif; ?>
    <?php get_footer(); ?>

    That's just an example and you should test it first. For example, you will most likely have <div> tags that style your content, h2 tags, etc. What I usually do is copy the contents page.php and remove bits like <?php get_sidebar(); ?> since this is the hook that calls for the sidebar.

    Save the text file as something like fullwidth-page.txt to a folder on your desktop. Right click and rename to fullwidth-page.php (basically just replace the .txt with .php)

    Upload to your wp-content/themes/theme folder.

    When you go to a Pages to create a new page, fill in the info as normal but on the right side look for "Template" and select "Fullwidth Page" as the template from the dropdown menu.

    Update page, and it should work fine

    Hope that helps
    {{ DiscussionBoard.errors[2105881].message }}
  • Profile picture of the author danishaniq
    many theme just 1 coloum.. you can search on google... i think you want to make for landing page...
    {{ DiscussionBoard.errors[2137554].message }}

Trending Topics