How to completely remove the sidebar? [closed]

Looks like they are hard-coded into the sidebar. So you could manually remove them, but they’ll just return when you update the theme. Best solution would be to make a child theme, if possible, and create a new sidebar without the unwanted widgets. EDIT: Remove <aside id=”archives” class=”widget”> <h1 class=”widget-title”><?php _e( ‘Archives’, ‘adamos’ ); ?></h1> … Read more

How to customize dynamic_sidebar rendering? [closed]

You may add before as well as after class to the sidebar when you define it into functions.php. <?php $args = array( ‘name’ => __( ‘Sidebar name’, ‘theme_text_domain’ ), ‘id’ => ‘unique-sidebar-id’, ‘description’ => ”, ‘class’ => ”, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, //You can change class/id here ‘after_widget’ => ‘</li>’, ‘before_title’ => ‘<h2 … Read more

Using Conditional Tags to restrict something to 1 user?

I don’t know the plugin, but with a rapid eye on it, it seems that what you want is not, but you can rely on widget_content filter fired by the plugin you are using. So, in your theme function.php put: if ( function_exists(‘widget_logic_redirected_callback’) ) add_filter(‘widget_content’, ‘my_widget_for_user’, 10, 2); function my_widget_for_users ($widget_content, $widget_id) { $allowed_users = … Read more

How to delete Jetpack Widgets from the Widgets page in admin panel [closed]

This is not an alteration to the Plugin itself, it’s just a way to revert what is already done. So, to Activate a plugin there’s a WordPress function: register_widget(‘Class_of_the_Widget’); As we can unregister the default plugins using the unregister_widget() function, we can use the same function for JetPack plugin’s widgets too. Get into the /wp-content/plugins/jetpack/modules/widgets, … Read more

How to hide sidebar widgets in all pages except Hompage?

Simple, quick option: use a plugin called “dynamic widgets“; it provides an interface the where you can specify the conditions under which each of your widgets should appear. Slightly more involved option is to edit your theme, so that it has two sidebars, both registered as widget areas, and include one of them only on … Read more