Add dummy sidebar for custom templates
This commit is contained in:
parent
69dafa7efd
commit
6505e24734
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -176,6 +176,30 @@ function fictioneer_get_theme_info() {
|
||||
return $info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers (dummy) sidebar
|
||||
*
|
||||
* @since 5.20.0
|
||||
*/
|
||||
|
||||
function fictioneer_register_sidebar() {
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'Fictioneer Sidebar', 'fictioneer' ),
|
||||
'id' => 'fictioneer-sidebar',
|
||||
'description' => __( 'For custom templates. Not used by the default theme.', 'fictioneer' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h2 class="widgettitle">',
|
||||
'after_title' => '</h2>'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! get_option( 'fictioneer_disable_all_widgets' ) ) {
|
||||
add_action( 'widgets_init', 'fictioneer_register_sidebar' );
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// AFTER UPDATE
|
||||
// =============================================================================
|
||||
|
@ -858,6 +858,10 @@ html:not(.logged-in) body:not(.logged-in) {
|
||||
}
|
||||
}
|
||||
|
||||
.widget {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.browser-notes {
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
|
Loading…
x
Reference in New Issue
Block a user