• Resolved hansou

    (@hansou)


    Hi,

    I want to add a left sidebar to this theme.
    I’ve followed the tutorials for that and I added this code :

    <section id="sidebar-left" class="secondary clearfix" role="complementary" >		<?php
    			dynamic_sidebar('sidebar-left');
    						 ?>
    	</section>

    in the file that I’ve created “sidebar-left.php”
    and this code :

    register_sidebar( array(
    		'name' => __( 'sidebar-left', 'smartline-lite' ),
    		'id' => 'sidebar-left',
    		'description' => __( 'Appears on posts and pages except Magazine Homepage and Fullwidth template.', 'smartline-lite' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</aside>',
    		'before_title' => '<h3 class="widgettitle"><span>',
    		'after_title' => '</span></h3>',
    	));

    in the file : functions.php

    The sidebar appears in the admin (I can add widgets) but not at the front of the website.
    I’ve no cache plugin.
    Can you help me ?

    Many thanks

Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks for using Smartline.

    There is no need to edit the theme files because the theme already supports a sidebar left layout.

    You can simply go to Appearance -> Customize -> Theme Options -> General Settings to change the default sidebar position.

    Best,
    Thomas

Viewing 1 replies (of 1 total)

The topic ‘Sidebar left’ is closed to new replies.