WordPress.org

Ready to get started?Download WordPress

Forums

[closed] 1 specific sidebar on a page instead of 2, how? (6 posts)

  1. AlexSandager
    Member
    Posted 1 year ago #

    I Have made a custom template and i want only 1 sidebar to appear on this page instead of 2. How can i do that?

    This do not work : <?php get_sidebar('secondary-sidebar'); ?>

    <?php
    /*
    Template Name: Cover Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="main"> 
    
    <?php get_sidebar('secondary-sidebar'); ?>
    
    <?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_footer(); ?>
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What theme are you using? Where did you download it from?

  3. AlexSandager
    Member
    Posted 1 year ago #

    from [ Link redacted ]

    I have solved the problem. But as you can see : http://pc-electronics.dk/?page_id=13 I have a new problem. the menu is stretched to much. I want them side by side. How can I do that?

  4. AlexSandager
    Member
    Posted 1 year ago #

    Here is my costum page

    <?php
    /*
    Template Name: Cover Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="main"> 
    
    <ul id="sidebar">
       <?php dynamic_sidebar( 'secondary-sidebar' ); ?>
    </ul>            
    
    <?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 -->
  5. Sorry but your chosen theme is not released under GPL. Non GPL products are not welcome in the WordPress community. Official WordPress policy states that all plugins and themes that are publicly released are required to adhere to http://wordpress.org/about/gpl/

    Any support requests for non-GPL products are usually ignored, in the interests of supporting the community and its freedoms.

    That site that you downloaded that theme from is very non-GPL friendly and we do not support any themes from there. They top my list and you really should avoid them and all their themes.

    You'll need to contact them for support.

    Please consider getting a theme from a reputable site or even the theme repo here.

    http://wordpress.org/extend/themes/

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic