Sidebars using incorrect before and after parameters
-
Hello,
This theme doesn’t properly configure the sidebar
before_widget
andafter_widget
parameters for compatibility with plugins like Widget CSS Classes and Genesis Widget Column Classes.functions.php:
register_sidebar( array( 'name' => __( 'Blog Sidebar', 'eaterstop-lite' ), 'description' => __( 'Appears on blog page sidebar', 'eaterstop-lite' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3><aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) );
Should be:
register_sidebar( array( 'name' => __( 'Blog Sidebar', 'eaterstop-lite' ), 'description' => __( 'Appears on blog page sidebar', 'eaterstop-lite' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
Regards, Jory
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Sidebars using incorrect before and after parameters’ is closed to new replies.