• Website: https://www.hdbanners.com

    Issue: I am trying to add two new sidebars, one added on to the left of the current sidebar menu, and another to the right of the other sidebar menu. I have already enabled the sidebars in the following files… style.css, function.php, sidebar-tertiary.php and sidebar-quarterary.php,

    My current issue has to do with the following files, index.php, content-before.php and content-after.php, I am unable to insert the sidebar correctly without mis-aligning everything else.

    QUESTION: How do I INPUT the necessary code without misaligning everything else? I am a newbie.

    The content-before.php coding currently is as follows:

    <?php global $theme; get_header(); ?>
    
        <div id="main" class="span-24">
    
            <div id="primary-sidebar-wrap" class="span-6">
    
                <?php get_sidebars('primary'); ?>
    
            </div><!-- #primary-sidebar-wrap -->
    
            <div id="content-wrap" class="span-12">
    
            <?php $theme->hook('content_before'); ?>

    And the content-after.php, is as follows:

    </div><!-- #content-wrap -->
    
        <div id="secondary-sidebar-wrap" class="span-6 last">
    
            <?php get_sidebars('secondary'); ?>
    
        </div><!-- #secondary-sidebar-wrap -->
    
    </div><!-- #main -->
    
    <?php get_footer(); ?>

    and if need be index.php:

    <?php get_template_part('content', 'before'); ?>
    
        <div class="content">
    
            <?php get_template_part('loop', 'homepage'); ?> 
    
        </div><!-- .content -->
    
    <?php get_template_part('content', 'after'); ?>

    Any help is much appreciated! Thanks in advance….

    -Zee

Viewing 2 replies - 1 through 2 (of 2 total)
  • The PHP files you refer to are not standard WordPress theme PHP files. They are specific to your theme, or perhaps other themes by that theme author. Thus there is not a generic answer.

    Most likely the issue is not in the PHP files but in the CSS stylesheet. Styling can cause content can be displayed out of the sequence it is defined in within the PHP files.

    Someone may have to be able to see the theme files and the stylesheet to understand the coding before they can help you.

    Have you successfully laid out the 4 sidebars on at least one page? If so, post the URL of that page. Are you saying you want all the pages to look like that page, with 4 sidebar columns?

    Thread Starter zee_banners

    (@zee_banners)

    stvwlf,

    Thank you for responding. Yes I would like to have the 4 sidebars on every page.

    I have contacted the theme author. Will update if there is something new and relevant to be shared. In the mean time, please let me know if you would like to see the theme file and css stylesheet, I would be more than glad to email them to you.

    Thank you once again!

    -Zee

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add new Sidebars’ is closed to new replies.