• 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(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • What theme are you using? Where did you download it from?

    Thread Starter AlexSandager

    (@alexsandager)

    from [ Link redacted ]

    I have solved the problem. But as you can see : https://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?

    Thread Starter AlexSandager

    (@alexsandager)

    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 -->
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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 https://www.ads-software.com/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.

    https://www.ads-software.com/extend/themes/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘1 specific sidebar on a page instead of 2, how?’ is closed to new replies.