I added a new sidebar according to WordPress Codex and for some reason it shows only on the admin and nothing shows on my front pages..
I tried to look for it on Google and here on the forums but I couldn't find what I'm doing wrong.
I'm using Sahifa theme which has it's own "theme-functions.php". It doesn't work if i add it to the 'functions.php'.
Here is my code-
<?php
function arphabet_widgets_init() {
register_sidebar(array(
'name' => 'Header Widget Area',
'id' => 'home-header-1',
'before_widget' => '<div id="arphabet">',
));
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
?>
And on my 'header.php'-
<div id="header-widget">
<?php dynamic_sidebar( 'home-header-1' ); ?>
</div>
I added a banner widget to my sidebar through the admin panel but nothing shows..
Where did I go wrong?