• I’m working on this website: http://vadenmark.identify.se

    I would like to set up a right sidebar on all static pages except “Kontakta mig”.

    What I’ve done:
    – created a new Widget Area called “Høyre Sidebar” via functions.php.

    What I need done:
    – I need the main page template page.php to show this right sidebar “Høyre Sidebar” (its ID is hoyre_sidebar).

    This is the page.php code:
    <?php
    /**
    * The template for displaying all pages.
    *
    */
    get_header(); ?>
    <div id=”content”>
    <?php
    /* Run the loop to output the page.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘page’ );
    ?>

    </div>
    <?php get_footer(); ?>

    PS: I need the page content width to be increased, obviously, so that there would be enough space for the sidebar. I hope that someone can figure this out! Any help will be very appreciated. Thank you!

  • The topic ‘Widget Area & Page Template’ is closed to new replies.