I see my new widget in the Widgets page, but not on the site
-
I’ve added the php code to functions.php to see my new widget box in the Appearance > Widgets page but it is not showing up on the website. I have some CSS for the size and background color in the style.css. What else do I need to do to get this to show up?
css: “.extra-widget-area {
min-height: 90px;
margin-bottom: 10px;
background: #bddadb;
color: #653535;”php: “// Adds a widget area.
if (function_exists(‘register_sidebar’)) {
register_sidebar(array(
‘name’ => ‘Extra Header Widget Area’,
‘id’ => ‘extra-widget-area’,
‘description’ => ‘Extra widget area before the header’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”
));
}// Place the widget area after the header
add_action (‘__before_header’, ‘add_my_widget_area’, 10);
function add_my_widget_area() {
if (function_exists(‘dynamic_sidebar’)) {
dynamic_sidebar(‘Extra Header Widget Area’);
}
}”Using Genesis Frameworks theme, child theme (of course).
The page I need help with: [log in to see the link]
- The topic ‘I see my new widget in the Widgets page, but not on the site’ is closed to new replies.