Add new Sidebars
-
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
- The topic ‘Add new Sidebars’ is closed to new replies.