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

get value from post to sidebar

You did not explain your question well so I am guessing quite a bit but I think you want something like this: function post_ids_wpse() { global $wp_query; $ids = wp_list_pluck($wp_query->posts,’ID’); $scs=””; foreach ($ids as $id) { $scs .= “[wp_value id='{$id}’]”; } echo do_shortcode($scs); } That is very crude. You should check that the various values … Read more

How do I include the sidebar (with Widgets) in a custom theme?

Your issue is the dynamic sidebar being called is not matching the ID of what is registered. Matching: <?php if ( is_active_sidebar( ‘sidebar-widgets’ ) ) : ?> <div id=”secondary” class=”widget-area” role=”complementary”> <?php dynamic_sidebar( ‘sidebar-widgets’ ); ?> </div><!– #secondary –> <?php endif; ?> Register Sidebar if (function_exists(‘register_sidebar’)) { register_sidebar(array( ‘name’ => ‘Sidebar Widgets’, ‘id’ => ‘sidebar-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

How do i make a sidebar background color? [closed]

The simplest way to create the solid color side bar is with this CSS: #branding { background-color: #ffffff; } #page { background: #ffffff url(path_to_image) repeat-y; } Replace #ffffff with the appropriate color used in your template (if they are different). The “path_to_image” would need to be pointed to an image file that is 1000px wide … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)