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
2answers
28 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
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
0answers
16 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 ...
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
15 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
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
0answers
31 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
0answers
40 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
55 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
3answers
116 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
29 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
87 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 ...
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
16 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
40 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 ...
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 = ...
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
40 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
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'); ?>`
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
83 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
92 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 ...
0
votes
1answer
50 views

Check which registered sidebar a widget is added to

I have 2 registered sidebars in my theme one for Products and one for Blog. What I am trying to do is if my "Category" widget is added to the Product Sidebar the taxonomy is automatically set to ...
0
votes
1answer
34 views

Get the search element only on 404

I know get_sidebar( ); is used to get the widget sidebar , but how do I request one element from it? For instance, if I want to show the search or most read only? I know there is a way to specify ...
1
vote
1answer
43 views

Wordpress Sidebar menu for posts based on date - guidance needed

One of the issues I have with WordPress is knowing when (and when it is possible) to use the WordPress back end instead of coding my own solution from scratch. This question is based around this. ...
1
vote
1answer
86 views

WordPress Twenty Fourteen Theme Sidebar

The Twenty Fourteen theme was used to create the basis of my own child theme. It's been pretty easy to override, but the left sidebar is proving difficult. I don't want to remove the sidebar ...
0
votes
1answer
231 views

Paginate recent posts widget

I've created a clone of the core Recent Posts widget as suggested here Code for Recent Posts Widget, but how would I go about adding pagination to that widget? I intend on using auto-pagination for ...
1
vote
1answer
48 views

Insert Widget option into mark-up with register_sidebar

I have added a custom field to my all widgets in my theme, called "custom-title". I have managed to save the field into the database for each widget, like so: s:12:"custom-title";s:17:"HELLO TEST ...
0
votes
2answers
54 views

How to determine if the sidebar is empty? Or not active?

I used is_sidebar_active('NameOfSidebar'), but it seems not working. It returns false all the time. I wanna have a condition that goes like this if('sidebar is not active'){ //must not display the ...
0
votes
1answer
20 views

Is there a way to dump all registered sidebar/widget?

I need to know the properties of sidebar and widgets I've added, is there a way to dump those? Thanks.
0
votes
0answers
16 views

How to unregister sidebar for template_part?

Can you help me please? I have this code in my index.php: php get_sidebar(); And I have a template_part 'loop-fullwidth', which I call in index.php. I need to register sidebar for index.php and ...
0
votes
0answers
47 views

Showing anchor links in sidebar for headings only on a certain page

I want to be able to add anchor links to header ids in one of my WordPress pages, and then show links to those ids in the sidebar. The sidebar is built like this in content-page.php: <?php ...
0
votes
1answer
71 views

Add sidebar in inner pages

I am new to wordpress coding. I want to add a sidebar to pages other than the home page, both pages are my custom templates. I want to list in admin so that admin can edit the content of sidebar. ...
0
votes
1answer
37 views

if conditional in sidebar plugin Password content shortcode

I have this code [][/] on page and work perfectly! so i want now if i can in sidebar check if the form is properly completed on the page and then will echo some word in sidebar. for example something ...
0
votes
1answer
22 views

Include inside sidebar

Is it possible to include a file inside or inbetween items in a sidebar? Here are the two functions being called: <?php get_sidebar(); ?> <?php get_template_part('testimonial-box'); ?> ...
0
votes
1answer
46 views

is_dynamic_sidebar always returns true while using Jetpack visibility

If I have any widgets in the sidebar, even if the jetpack visibility is set to not show on that page, is_dynamic_sidebar return true. Here's the code in my theme functions file: add_action( 'init', ...
1
vote
2answers
71 views

Unregistering a Sidebar in Child Theme

I'm working with a handy responsive theme framework (Reverie) and I'm developing my own theme the right way using a Child theme. The Parent theme calls a sidebar called with an ID of 'Footer' and ...
0
votes
1answer
44 views

Calling dynamic_sidebar in plugin gives error

I am trying to call dynamic_sidebar from a plugin page. Whenever I do so, it returns a white page! Any idea why? What I am trying to do is to save the total sidebar output in a transient. I can get ...
0
votes
1answer
67 views

Adding Multiple Images to Sidebar Through Dashboard

I have a sidebar with 3 images hardcoded. I'd like to make it so you can change these through the WordPress dashboard. What's the easiest way to accomplish this? Using a plugin, custom post type? ...
0
votes
1answer
36 views

New Widget are not showing

I added a new sidebar according to WordPress Codex and for some reason it shows only on the admin and nothing shows on my front pages.. I tried to look for it on Google and here on the forums but I ...
0
votes
0answers
48 views

Wanted to collapse all the widgets in sidebar by default via jQuery

I already applied jQuery on footer to Slide them up but i noticed that when the page is completely loaded the widget slides up properly but dont know how this again slides down automatically. I m not ...
0
votes
1answer
230 views

How to only show parent categories in sidebar

How to only show parent categories in sidebar? But also when browsing posts, to show all the subcategories of the parent category the current post is in, showing the hierarchy. the other parent ...
0
votes
0answers
61 views

Display custom menu on specific post/page

I have a real problem with Wordpress. My need is this: I have three main pages that every one must display a list of sub-pages (custom menu) and a list of events related to that specific page. Both ...
0
votes
1answer
45 views

$before/after_widget/title not displaying anything

I have built a custom widget with this code: class rfw_dock extends WP_Widget { function __construct() { parent::__construct('rfw_dock', __('TITLE'), array( 'description' => __( ...
2
votes
1answer
68 views

Randomize widgets displayed in my sidebar [duplicate]

I have a sidebar which might have any number of widgets. I can count the number of widgets that exist in the sidebar. How do I display randomly only one of the widgets in my sidebar at each page load? ...