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
11 views

Target logic based on Widget / Sidebar Name

I have a theme that uses registers a sidebar called 'homepage-middle-widget' and it's child widgets are pulling images in undesired sizes. Is it possible to target a widget and / or it's parent in ...
0
votes
1answer
9 views

sidebar not displaying when using get data

I have a sidebar as a widget which displays correctly on all pages depeneding on the super page id. I am using a custom function to calculate and display the required sidebar. function ...
0
votes
2answers
25 views

Dynamically add content to an existing widget area

I have an existing widget area / sidebar. Rather than adding content to it via Appearance ? Widgets in the Dashboard, I want to inject content into the widget area from functions.php. Is there hook ...
0
votes
2answers
2k views

How to edit contents of dynamic_sidebar()?

I know PHP well but I'm new to Wordpress. I got an incomplete Wordpress website. It has a static home page with an Aweber newsletter form. I tried digging into installed theme and in home.php I came ...
0
votes
2answers
360 views

Widgets not displaying in theme customizer

I am developing a new theme and I am using several sidebars in this theme. All works fine, but the widgets are not showing up in the theme customizer section. All widgets are working fine under ...
1
vote
1answer
330 views

Displaying different page links on different pages

I have a wordpress site with 100+ pages. Now suppose 5 pages are related to page 1, and I want to show them in side bar as similar pages/related pages and other group of pages in other menu in ...
0
votes
2answers
282 views

Change HTML structure for custom menu in sidebar

I've been digging for documentation on how to change HTML output for the "Custom menu" which you place in optional widget. So its clear what I meen I have attached an image of the widget block here: ...
0
votes
3answers
112 views

Tags Instead of Category

UPDATE: I have this widget that allows me to CHOOSE and SHOW the latest posts from a specific category in the sidebar. Here's the code; add_action( 'widgets_init', 'tie_categort_posts_widget' ); ...
0
votes
1answer
51 views

Correcting the content width when sidebar is inactive?

I want my website's content (posts) to be central in the page when the sidebar is inactive. I've currently got it set to fit both the content AND the sidebar on the same page. How can I make it ...
0
votes
0answers
12 views

Displaying Custom Sidebar Without Modifying Theme's Core File?

Is there a way to display custom sidebar created with a plugin on the wordpress front-end without modifying theme's core file? EDIT: Here is what I currently doing: I hooked the custom dynamic ...
3
votes
1answer
677 views

Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying

I am registering sidebars and sidebar widgets. The theme currently supports two sidebars. Primary and Secondary. add_action('widgets_init', array($this, 'add_sidebars'), 10, 2); public function ...
4
votes
5answers
3k views

Different widgets on different page templates?

If I have a couple of different Page templates, how would I show a different collection of sidebar widgets for each of these templates? I'm using the Starkers theme as a starting point.
0
votes
0answers
14 views

Custom options for sidebar (widgets container)

How can I create custom options for the sidebar? Like toggling the sidebar and setting its width, right from the widget area? I can do this for widgets but not the sidebar. Here's an illustration of ...
0
votes
1answer
439 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
1
vote
3answers
1k views

Show featured image in sidebar

I'm adding a widget on my sidebar but the Featured Image isn't shown. this is the code of my side bar: <?php /** * The Sidebar containing the main widget areas. * * @package PowerMag * @since ...
3
votes
2answers
583 views

Full width layout for custom post type pages

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
0
votes
0answers
8 views

Divide / Break sidebar in two

I have to implement a design where I need to divide the sidebar in two. Please see the below image of the design. I managed to split the posts from the main loop by using a counter. After the first ...
0
votes
2answers
3k views

How do I make the sidebar bigger in twenty twelve?

I am new to WP with little knowledge of code. I am using Twenty Twelve and have managed to create a child theme (minus the header image for some reason). One of my widgets does not fit into the ...
2
votes
1answer
125 views

Multisite Widget/Content

I'm using WordPress multisite and need to display content across all subsites in the sidebar. This is a network of 50+ sites so updating all 50+ sidebars with this content every few days is not ...
0
votes
2answers
299 views

Conditionally exclude post from specific category on home page sidebar?

I want to exclude posts from one category. These posts should not show in the sidebar on the homepage only when I explicitly don't want that particular posts to show. In all other cases these posts ...
0
votes
2answers
3k views

Exclude current post ID from loop in sidepbar.php

Currently all the below bit of code is doing is showing 3 random posts from the same category that the current page resides in. So if the current page falls in the artists category, for example, show ...
3
votes
2answers
412 views

Sidebar Generator issue

I hope this doesn't come across as very dumb (to some extend it is, however), but I am having a hard time dealing with the Sidebar Generator. In the description it is stated that "Now supports themes ...
0
votes
0answers
30 views

Add classes to individual sidebars

This is my first time posting on here so let me know if I don't follow any rules or best practices. I'm creating several sidebars through our WordPress site and not all of them will be styled the ...
0
votes
4answers
634 views

Showing sidebar-2 on custom template page

Environment: WP 3.5, Twenty Twelve child theme. I created a custom template. Now, I'd like to display the built-in sidebar-2 in this custom template page (instead of the default sidebar-1). sidebar-2 ...
0
votes
0answers
37 views

How to change the widget's instance settings depending on sidebar

I want my widget to have one default option value in sidebar-1 and another in sidebar-2. How can I do it? I know wp saves widget right after drag and drop it into different sidebar in widget admin ...
0
votes
2answers
2k views

Conditional tags issue for multiple is_page() conditions in sidebar.php

I've been pulling my hair out today trying to get this right. Basically I have a sidebar, which makes requests to individual files (such as sidebar-home.php, sidebar-residential.php) and different ...
0
votes
2answers
54 views

Function to remove archive sidebar for custom taxonomy?

I have a custom taxonomy/custom post category and I'm trying to write a function, which removes the sidebar from the archive pages, only when there's a (custom) taxonomy match. The match part isn't ...
0
votes
1answer
25 views

Echo there are no posts wp_get_archives

I'm using wp_get_archives to output my archives in a sidebar - but if there are no posts I would like to echo out 'there are no posts to show'. Is there a conditional statement or filter I can use? ...
0
votes
1answer
45 views

Displaying details of a post in a sidebar

I am developing a wordpress theme but m still new into and was learning. Basically, its a theme for resource website which provides web templates. In my theme i've created a details section in sidebar ...
-1
votes
1answer
75 views

Change sidebar product category text color (woocommerce) [closed]

I have woocommerce shop set up here: http://museiam.ca/shop/ I am trying to change the color of the category texts to black in the left sidebar, however I've been unsuccessful so far even trying ...
1
vote
1answer
586 views

How to “pair” two widgets side by side in one sidebar [closed]

Currently I use the Pinboard theme with 2 sidebars. In each sidebar I place one kind of widget several times. The point is that 2 widgets of a row (1 of each sidebar) belong together regarding the ...
0
votes
0answers
36 views

How to exclude sidebar from pages?

I put some page id's in exclude page in appearance -> widget -> pages -> left sidebar. But these pages still exist in sidebar which is not to. Site: http://goo.gl/ek63ye Here's the code of left ...
0
votes
0answers
15 views

Excluded pages continuous displaying

I put some page id's in excluded page in sidebar but still these excluded pages continuous displaying to the sidebar which is not to be display. I'm using different plugin but still those excluded ...
-1
votes
2answers
39 views

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

I have created a custom WordPress theme and need to be able to include the sidebar with widgets. I have the sidebar.php file, functions code and three widgets waiting to see the light of day. But ...
25
votes
4answers
7k views

Programmatically add widgets to sidebars

I would like to programmatically add widgets to my two sidebars that I've got. I couldn't find any official way of doing it? I started looking in the database. I've found that it's the ...
5
votes
1answer
10k views

Translate widget titles using qTranslate plugin

I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to ...
3
votes
1answer
209 views

Register multiple sidebars

I am registering my sidebars as follows: $sidebars = array ( 'sidebar-10' => 'Main Sidebar', 'sidebar-11' => 'Homepage Area One', 'sidebar-12' ...
0
votes
0answers
14 views

How to hide a Sidebar from other admins?

Is there a function way that I can hide a sidebar from other admins? Meaning they can't see it so they can't edit its content but it is still there? I'm wanting to place my copyright, developed by ...
0
votes
0answers
29 views

echo widget contents

I am trying to echo a widgets into my content as so: function myfunctionid() { if(!is_admin()){ $wppopsidebar = dynamic_sidebar('wp-pop-panel'); $insert = ...
1
vote
2answers
2k views

Display all posts under child sub category in sidebar on post page?

I am trying to make a custom sidebar for my posts in certain categories. It will look something like this. My category structure looks like this: Parent 1 Child 1 Sub Child 1 Sub Child 2 Child ...
0
votes
0answers
19 views

Adding repeatable fields used in Widgets?

How can adding repeatable fields used in Widgets? I want add (Add more country favorites fields) and remove (Example ... France) what I actually Have what I want Any tips?
0
votes
1answer
38 views

Why the dynamic_sidebar() call is putted into an ul tag?

I am pretty new in WordPress development and I have the following doubt about how the sidebar are putted into a WordPress theme. Looking into the official documentation: ...
0
votes
1answer
37 views

How do you control sidebars when there's no get_sidebar in templates?

I'm working with a WordPress 4.0 install, using Omega (the ThemeHall version; there are multiple Omega themes out there). Most of the instructions I've seen to control whether the sidebar appears or ...
0
votes
1answer
671 views

Load more posts (Ajax) in tabbed sidebar on single.php

I'm trying to use this approach http://wordpress.stackexchange.com/a/56349/18144 to create a 'load more' button in the sidebar on single.php. I would like to able to load more posts in a sidebar tab ...
0
votes
1answer
26 views

Can I get variable into dynamic sidebar?

How can I get a variable into a sidebar? $sidebarnum = 4; dynamic_sidebar('Footer Widget $sidebarnum'); ?>`
1
vote
2answers
4k views

(WooCommerce) Remove Sidebar only on Single-Product page

I'm creating a theme and don't want to display the sidebar on single-product's page. Following the recommendations of WooCommerce, I made a copy of "templates" folder (under woocommerce plugin) and ...
0
votes
1answer
25 views

Display post format post in the sidebar

I am trying to pull posts with the post-format of "quote" on my sidebar. I'm getting the code to spit out the else statement but that's about it so far. I am working in the roots theme if that helps ...
0
votes
1answer
33 views

Find sidebar.php in WP 3.9.2

I have tried to find sidebar.php in WP but I cant find it. Can anyone help me? I would like to remove achieve and META. I have been looking for this php file sidebar for a very long time now. Your ...
0
votes
0answers
79 views

Working widget does not show up in appearance->widgets

I try to add a custom widget for use outside of a normal sidebar. For that I have created class myfirst which extends WP_Widget and with appropriate function overrides. namespace widget; class ...
1
vote
2answers
88 views

Cannot save widgets in custom sidebars

I'm working on a child theme of the Toolset Bootstrap Theme. I need to create a custom sidebar, so I registered the new sidebar in my child theme's function.php file: function ...