Added Div IDs, Doesnt Work
-
Hi,
After reading the FAQ, I edited my theme’s functions.php and added this to the last sidebar:
Original Code
genesis_register_sidebar(array( 'name'=>'Third Sidebar', 'id' => 'third-sidebar', 'description' => 'This is a sidebar that goes after the second left, right sidebar.', 'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>', ));
Modified
genesis_register_sidebar(array( 'name'=>'Third Sidebar', 'id' => 'third-sidebar', 'description' => 'This is a sidebar that goes after the second left, right sidebar.', 'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>' ));
When viewing the View Source, the div Ids show:
<div id=”third-sidebar”><div id=”tag_cloud-4″ class=”widget widget_tag_cloud”><h4 class=”widgettitle”>TAG CLOUDThe last sidebar item is the Tag Cloud and what we want to make sticky:
https://karmajello.com/humor/funny-pictures/funny-animal-photo-gallery-3.html
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Added Div IDs, Doesnt Work’ is closed to new replies.