WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Add a sidebar to the left and move context to the right? (5 posts)

  1. AlexSandager
    Member
    Posted 1 year ago #

    How can i move the context to the right and add a sidebar on the left side, as any other normal webiste?.

    <?php
    /*
    Template Name: Cover Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="main">
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div style="width:850px !important;">
    
    <?php the_content('
    <div id="content" class="widecolumn">
    Read the rest of this page �</p>'); ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php endwhile; else: ?>
    
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>
    
    </div><!-- #main -->
    
    <?php get_footer(); ?>
  2. nepaliart
    Member
    Posted 1 year ago #

    changing the CSS is the best option to do so.. let me know if you are able to do it or not..

  3. AlexSandager
    Member
    Posted 1 year ago #

    I now a little about changing the CSS but not with this. Can you help me?
    i put this code in the page, but im not sure it's the right way to do it :: margin-left: 350px; !important;">

    <?php
    /*
    Template Name: Cover Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="main">
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div style="width:850px; margin-left: 350px; !important;">
    
    <?php the_content('
    <div id="content" class="widecolumn">
    Read the rest of this page �</p>'); ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php endwhile; end: ?>
    
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>
    
    </div><!-- #main -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  4. nepaliart
    Member
    Posted 1 year ago #

    Ok.. the simplest way is to:

    Go to admin section.
    And then go to Appearance > Theme Options
    There you can choose the layouts, choose content to right.
    Save it and done.

  5. AlexSandager
    Member
    Posted 1 year ago #

    I do not have that option. It's only the image i can move with there.
    Now I just need the sidebar to go up on the left side of the content.

    How can I do that?
    Here is the page it's about.

    http://pc-electronics.dk/?page_id=13

    [duplicate - continue with http://wordpress.org/support/topic/how-do-i-add-a-sidebar-to-a-fullwidth-page?replies=5 ]

Topic Closed

This topic has been closed to new replies.

About this Topic