A Sidebar is a theme feature introduced with Version 2.2. It's basicly a vertical column provided by a theme for displaying information other than the main content of the web page. Themes usually provide at least one sidebar at the left or right of the content. Sidebars usually contain widgets that ...

learn more… | top users | synonyms

0
votes
1answer
22 views

I'm hit with: undefined constant register_sidebar. Once in debug mode? [on hold]

I'm attempting to test my theme and I switched my config to debug true and I'm now hit with "Notice: Use of undefined constant register_sidebar - assumed 'register_sidebar'" I'm struggling to fix and ...
0
votes
2answers
22 views

Output column number according to active sidebars

$sidebars = array( is_active_sidebar( 'footer-4' ), is_active_sidebar( 'footer-3' ), is_active_sidebar( 'footer-2' ), is_active_sidebar( 'footer-1' ...
1
vote
1answer
20 views

Remove All Widgets from Sidebar

Does someone know a solution for this? I want to remove (not unregister) all widgets from a sidebar with a function.
-1
votes
0answers
30 views

How to add sidebar at single.php in my Teseract Theme 2015 [closed]

I'm having a problem when it comes to adding sidebar at single.php. I've already included <?php get_sidebar(); ?> But it seems to appear below and the content(Blog post) still at the middle ...
-1
votes
0answers
23 views

Right sidebar change position

I am using News Mix Light theme on my website www.readdaily4free.com, which looks OK on laptop and mobile screen but when I open my website on Computer system, the sidebar (right sidebar) position ...
0
votes
0answers
16 views

how to remove sidebar on single post- and sub-pages using hooks/actions (Omega theme by Themehall

I've created a child theme from the 'Omega' parent theme by Themehall. I'm trying to remove the sidebar on all single post pages and sub pages of my blog and instead have a single full-width column ...
0
votes
1answer
14 views

Do not show one specific widget on one specific page

Using a child theme of genesis and am unsure of how to remove a contact us widget in sidebar from the contact us page. Is there an easy way to do so? It's part of the theme which has it on the side ...
1
vote
3answers
62 views

How the WordPress sidebar works

Ok, the title is surely not good to explain my very basic question, but here it is: I just started creating a wordpress theme and the index.php has two columns: 1.) The main content and 2.) A ...
0
votes
0answers
45 views

Show sidebar only if widget has content

I'm using the Scaffolding theme and the Advanced Sidebar Menu plugin. The plugin works correctly but the theme always shows an empty sidebar because the widget is active. I believe the code that does ...
-3
votes
1answer
47 views

Woo commerce Single Product Sidebar [closed]

Im trying to move the product summary from a single product, into the woo commerce sidebar? Does anyone know how to go about this? Would be forever grateful!
1
vote
1answer
34 views

How can you add a link to a sidebar description?

How can I add a link to a sidebar description? $sidebar_description = sprintf(__( 'Sidebar for the <a href="%s">%s</a> post', 'themetext' ), get_permalink($post->ID), ...
0
votes
1answer
12 views

three sidebars showing without call

code from template where i call header sidebar <div class="wrapper"> <?php get_sidebar("header"); ?> <div id="switcher"> widgets.php has following coding... <?php if ...
0
votes
1answer
32 views

Active Sidebar Conditional Question?

I have the following code that works but doesn't look good: <?php $col = 'one'; if( is_active_sidebar('footer') && is_active_sidebar('footer-2') && ...
0
votes
3answers
117 views

Add sidebars to navigation menu?

Is it possible to add a sidebar to navigation menu? I'd like to be able to add sidebars in Appearance > Menus, like I add pages. I have a way of creating extra sidebars, so that's not an issue (I ...
0
votes
1answer
25 views

Best strategy for providing theme options using customizer

I am making a free distributable theme and I wish I could provide theme options in the best possible way. I have doubts (mostly about widgets) and sidebars. Here we go: Is it a good idea letting the ...
0
votes
2answers
15 views

How do I add a class to all sidebars to let a Google Custom Search Engine know not to index the content?

I've replaced the WP search on my site with a Google CSE. Google has a nice feature that lets you specify that certain areas of the page should not be indexable, by adding a "nocontent" class to those ...
-1
votes
1answer
45 views

Images in Woocommerce Product Sidebar [closed]

there is an easy way to assign your custom image size to the mini-cart.php that is responsible for the cart widget. The code is on line 32: $thumbnail = apply_filters( ...
0
votes
0answers
14 views

Register Widget Areas from Custom Widget

Is this possible to register sidebar / widget area from a custom widget?. If you have any idea please let me know. I can create it from custom theme and custom plugin. But I want to create from ...
0
votes
0answers
49 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
0answers
27 views

Twenty Fourteen modify left sidebar on home page only

I'm using a twenty fourteen child theme and want the left sidebar to be different on the home page. I'm trying to modify it without changing any files so I made a new sidebar called sidebar-front and ...
0
votes
0answers
33 views

How to modify twentytwelve sidebar in a child theme

I'm trying to modify the sidebars of the twentytwelve theme in my child theme. So far, I've added this to the child theme's functions.php file but all pages are now blank. remove_action( ...
1
vote
0answers
11 views

Save/update widget outside admin panel

Is there some way to update/save widget from page - not from admin ? I create widget with charts and do not know how to update it from sidebar. I found of course form in admin: <form action="" ...
0
votes
1answer
19 views

Display a post via template

I want to display a single post in the sidebar-area (not the sidebar itself) and can't seem to get it working. I know the post_id (it's 1571 btw), so I looked around and only found this link from 7 ...
0
votes
1answer
31 views

Check if sidebar is rendered?

I want to check if there are sidebars rendered on the front end and if so output some body classes so I can style the page differently. I tried using is_active_sidebar but that just returns true if ...
0
votes
1answer
14 views

Children Pages Displaying Only Intermittenty

Created a sidebar that lists WP's default pages' children. Yet there is some intermittent behavior where the sidebar lists the directory correctly on one page, but nothing on another. Live examples ...
0
votes
0answers
28 views

Sidebars for custom post type

I have created a sidebar and named it as ‘Clients Sidebar’. I also have a custom post type ‘Clients’. Now I want to assign ‘Clients Sidebar’ to all Clients without using any plugin. My theme has an ...
0
votes
1answer
15 views

Programmatically retrieve the sidebar/s classes

For my new plugin which I develop, I need some code to retrieve the sidebar/s classes(programmatically of caurse). Can someone advise please? Regards I. sher
0
votes
1answer
21 views

Cannot access variables within a widget

I'm currently learning PHP and Wordpress development from a Java background at the moment. How do I access variables in public function Example_Widget() from public function widget( $args, $instance ...
0
votes
0answers
54 views

Admin Sidebar Menu in Tree View

how to make admin sidebar menu in tree view like this plugin ? => Admin Menu Tree Page View I mean, it's only for Pages menu. I wanted plugins list contained in the sidebar menu can be made in the ...
0
votes
0answers
22 views

PHP Wordpress Monthly Top Author in Sidebar

Im trying to show List of Top Author by Property Update Count (Monthly) in my sidebar. How to adjust this php code. This php only show AUTHOR list in my sidebar, not sort it by Monthly Property Update ...
0
votes
0answers
68 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
2answers
31 views

Searchresult sidebar change

So, where is the searchresult page sidebar located? For example, in the searchresult page, there is "A" sidebar. However, I want to change it to "B" sidebar. I looked at search.php but could not ...
0
votes
0answers
37 views

How to display comments with recent comments default widget?

I would like to create custom widget from the default Recent Comments widget to show also the comment content of commenter. How can I do it? class YOUR NEW WIDGET NAME extends WP_Widget { // ...
0
votes
0answers
6 views

How do I default the widgets in my dynamic sidebars? [duplicate]

Similar to a previous question that was not technically answered: I have a custom theme with dynamic sidebars and custom widgets. I would like to set what widgets are in those sidebars by default. ...
0
votes
0answers
34 views

Add class to links inside widget

So I'm working on a theme and I'm using Ian Lunn's collection of css hover effects. Currently I'm adding the classes I want through the dashboard (appearance>menus) which adds the class to the li that ...
0
votes
1answer
83 views

I'd like to add an fa icon before a link in my 'recent post' side bar [closed]

Similar to your 'how to format' side bar----> I've got the code that will pull the icon the question is: where do I insert that, so that with every new post a link appears in the side bar with the ...
0
votes
0answers
46 views

Expand Widget Area With Archive DropDown

I have archive drop down widget. but when i open list, these lists are floating over below widgets and not expanding its parent area for drop down list this widget is added by wordpress widget area ...
0
votes
1answer
81 views

Check if widget is inside sidebar with PHP

I am creating a custom theme with some widgets. In the theme, to make it easier for my client to update, I am using SiteOrigin's Page Builder plugin, which uses widgets to display content. I am ...
1
vote
1answer
69 views

Adding Multiple Sidebars

Hello all I would like to add multiple sidebars to my wordpress site I currently have 2 sidebars registered in functions.php like so: function themename_widgets_init() { register_sidebar( array( ...
0
votes
0answers
21 views

twitter widget loads properly in all themes except my own theme?

I've written my own theme for my wordpress website. The problem is that the twitter widget loads properly in all the themes except mine. Below is the attachment of the widget in both the themes - ...
0
votes
0answers
72 views

Sidebar menu, different parent and child pages

I wish to organize a hierarchy of pages into a navigation menu in a manner similar to the following: Cats Short-haired Long-haired Purebred About Animals Dogs Toy Dogs Hounds Terriers About ...
2
votes
1answer
100 views

List children of second level sub page

Top Level Page - Second Level Page --- Child Page --- Child Page --- Child Page The goal here is to list all children of second level, I have that done from the codex. However, when I click ...
0
votes
0answers
404 views

Extra sidebar in Twenty fifteen

I really like the Twenty Fifteen theme, but I need an extra sidebar, preferably on the right side of the screen. I already made a child theme, and tried the following: Added the following to ...
0
votes
1answer
35 views

How to remove a widget from the sidebar on specific page?

I want to remove a widget from page with id '28'. How can I do it? I have found function for it, but it is private function, so I can't use it. "wp set sidebars widgets This function's access is ...
-1
votes
1answer
31 views

How to hide sidebar widgets in all pages except Hompage?

im using a sidebar widget in homepage for an extra gallery. sadly it appears in every pages ._. thanks in advance
-6
votes
1answer
40 views

Which banner plugin is this? [closed]

Which plugin is the main banner on this demo website ? I've wasted much time looking for it. I just couldn't find it. http://template-demo.org/woo/WCM01/WCM010013/WP1/
0
votes
0answers
110 views

Recent posts show thumbnail

I'm learning wordpress theme development and using Underscores as my starter theme. How can I show either a small thumbnail of a image or featured image, from each post In my recent posts custom ...
0
votes
0answers
84 views

How To Make Wp Dynamic Sidebar Like twentytwelve Theme

im new in wordpress and trying to create wordpess theme which can be used in any wordpress blog ,im following twentytwelve Theme as my theme example but when i try to create sidebar it does not work ...
0
votes
1answer
33 views

How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?

Lets say i want to detect such thing from the "functions.php" .. to know which Sidebar (or) which Menu is being loaded on current (whatever landed) page, how can i know? Lets say i have a few pages, ...
1
vote
0answers
106 views

How to create pagination for homepage with widgetized area?

I have created homepage with sidebar area filled with different widgets. Each widget fetch and display posts from different categories. Now I need to create a numbered pagination in homepage which ...