I am doing some website change on a custom template. A sidebar was originally created to for a number of widgets as seen below. The problem is when I go to the widget area the widgets are there but their is no sidebar to put them in in. When view on the front, there is also no sidebar visible.
However, if the sidebar.php file is removed then a default sidebar shows on the front but still not in the widget area. I am not sure what is wrong with the code below~:
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => __('Sidebar Widgets','html5reset' ),
'id' => 'sidebar-widgets',
'description' => __( 'These are widgets for the sidebar.','html5reset' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => __('Homepage featured products','html5reset' ),
'id' => 'hp-featured',
'description' => __( 'This widget add featured products to the homepage.','html5reset' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => __('Homepage categories links','html5reset' ),
'id' => 'hp-categories-links',
'description' => __( 'This widget add manual links to the homepage in the categories area.','html5reset' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => __('Homepage featured pages','html5reset' ),
'id' => 'hp-featured-pages',
'description' => __( 'This widget allows you to control four boxes near the bottom of the homepage.','html5reset' ),
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => __('Right Footer Widgets','html5reset' ),
'id' => 'footer-widgets-right',
'description' => __( 'These are widgets for the right-side footer.','html5reset' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => __('Left Footer Widgets','html5reset' ),
'id' => 'footer-widgets-left',
'description' => __( 'These are widgets for the left-side footer.','html5reset' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
}
This is the code in the sidebar.php file:
<div id="sidebar">
<?php dynamic_sidebar('Sidebar Widgets'); ?>
</div>
Why isn’t it working? I would appreciate any help.
Thanks.
]]>I created a new sidebar with the plugin and the ‘Conditions Group’ was fixed to the name of the page where I want to show the new sidebar. I have no ‘Default Template’ under the other Conditions group to be added!!!
Maybe I am doing something wrong!
Best regards from Spain
Jorge
https://www.ads-software.com/plugins/content-aware-sidebars/
]]>https://www.sarepa.com
https://www.ads-software.com/support/topic/profitmag-template-theme-options-not-working?replies=5&view=all
]]>https://iamactionjackson.com
Please advise,
]]><a href="https://twitter.com/nathanevansart">Tweets by @nathanevansart</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
I tried doing it by going to Appearance > Widgets > then add a text box to sidebar widgets.
I also tried doing it by going to Appearance > Editor
I really need to post things in my sidebar. Any help is much appreciated!
]]>Everything was working great. Then I changed a sidebar on the Business Music page, now the custom Music Business sidebar on that page will not show…it will only show the default sidebar. Same is true for quite a few other pages now, including Booking and Touring, Music Promotion, Music Publishing, and a few others. Help. development.performermag.com
Thanks
https://www.ads-software.com/plugins/simple-page-sidebars/
]]>[Non-GPL code removed]
I added an HTML code to the sidebar widget, nothin g is showing on the site at that side of the page(s). Please help. Do I need to activate something? How could I do so?
]]>my code:
if(function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Main Sidebar',
'id' => 'mainsidebar',
'before_widget' => '<div class="widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="wtitle">',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => 'Left Sidebar',
'id' => 'leftsidebar',
'before_widget' => '<div class="widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="wtitle">',
'after_title' => '</h2>'
));
}
If I remove 'id' => 'unique-sidebar-id',
they work again.
There’s nothing else in fucntions.php, no plugins installed, just a very basic theme.
Any idea? Thanks
]]>By setting my “Site Address” back to the WorldPress folder on my website, the sidebar is working, but I’ve lost ability to return to my website top page.
It would be nice (is necessary) to provide two pages: one for the sidebar and one for the home page. For now I’ll live without being able to return “home”.
Ron
]]>