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
2answers
220 views

how to remove sidebar from particular one page

I am writing this code in page.php for removing the sidebar in one page <?php if (is_page('x')) : ?> <?php else : ?> <?php get_sidebar(); ?> <?php endif; ?> ... where "x" is ...
0
votes
2answers
121 views

Is there a way to allow only certain type of widgets in the sidebars?

For example, I want Sidebar A to display nothing but one text widget and Sidebar B to display anything but text widgets. How can I do that? Thanks.
1
vote
1answer
64 views

Admin option sidebar count

I need to add a count number to a option menu item in the admin sidebar. How is this done? I found a similar post: Modifying admin sidebar contents to show pending posts indicator
0
votes
1answer
38 views

Listing current pages subp page in list items in the sidebar

I'm wanting to list my current page's child pages as list items in the sidebar of my wordpress site. So far I've been referencing the http://codex.wordpress.org/Function_Reference/wp_list_pages I'm ...
0
votes
2answers
115 views

Is `is_sidebar_active()` deprecated, and showing error?

I Googled is_sidebar_active(), used by several WordPress trainer, but I came to the decision, the function's surely deprecated. But unfortunately I found no mention, even no entry in WordPress Codex. ...
0
votes
1answer
69 views

Styling the second sidebar

Ok so i added a second sidebar to my site, only problem is styling the widgets. here is the code i am using in my functions.php file // Widgets plugin: intializes the plugin after the widgets above ...
0
votes
2answers
59 views

Add Stack Exchange Recent Questions to a wordpress sidebar?

So my question is what is the easiest way to go about scraping a Stack Exchange forum "recent questions" and display them in the side bar of a wordpress site?
0
votes
1answer
52 views

Default widgets assignment - isn't working

The question is regarding, calling the default widgets into the sidebar[s]: So, despite the solution given in THIS THREAD, I tried a different way - Ian Stewart's borrowed solution given HERE. It's ...
1
vote
2answers
76 views

Where do posts get the sidebar from?

I'm trying to add an if statement on the sidebars that are displays in POSTS. I want posts to show a specific sidebar if it's in category x and display a different sidebar if it's not in category x. ...
0
votes
1answer
45 views

Page specific values in widgets

I have a travel guide website which I have created with WordPress which contains destination guides. On the destination guides pages I have a sidebar which displays destination statistics (currency, ...
0
votes
2answers
212 views

Widget to show posts in the sidebar basing on its IDs

I am trying to create a widget that displays posts in the sidebar taking post IDs as input from the user. The result of my code is that the widget displays just the first entered ID and ignores the ...
0
votes
1answer
122 views

Update widget form after drag-and-drop “only specific plugin”

This solution, Update widget form after drag-and-drop, works correctly but I want to adapt this function to affect only a specific plugin and not every plugin. How could I do it?
2
votes
1answer
151 views

register sidebars

i registered my sidebars as follows: $sidebars = array ( 'sidebar-10' => 'Hoof Sidebar', 'sidebar-11' => 'Tuisbladsy area een', 'sidebar-12' ...
0
votes
1answer
108 views

Only display on sidebar if only got value inserted on post

This is the statement of post submit:* <fieldset> <label for=MarketItem_cost><?php echo __('Software Version', 'WpForest'); ?>:</label> <p><input ...
0
votes
2answers
41 views

user definable sidebar per page

I'm searching for a solution where the user can define some sidebar widgets for himself (only text and images). The user should have the possibility to choose a different sidebar for a different page. ...
0
votes
1answer
65 views

Add a select-option to the default widgets

I would like to add an extra feature to one of the default widgets so that the user can choose from the select-field to either align the widget to the left, center or to the right. How would I be ...
0
votes
1answer
289 views

Override WordPress Widget CSS Classes?

I'm attempting to style lists in the sidebar (you know, <ul><li>) and I'm curious how to also make widgets adopt this class. Each widget seems to have its own class assigned to it by ...
-1
votes
1answer
3k views

Woocommerce Sidebar issue

I've just installed Woocommerce into my website and it's working great apart from one thing... Sidebars! How do I set which Sidebar the Shop page and other WooCommerce pages use? As part of my ...
1
vote
1answer
128 views

How to increase maximum number of sidebars support?

How can i use more than 20 sidebars in wordpress. I'm working on a big information portal, and I need big amaunt of sidebars (about 40, I guess). So I have 20 sidebars now and when I add one more it ...
0
votes
1answer
71 views

How to display a sidebar only for blog?

I have 2 sidebars(primary and secondary). I want the secondary sidebar to display only on the blog page and primary sidebar to display everywhere else except for the blog page. What have I tried: In ...
0
votes
0answers
68 views

Group post archive by last two weeks and months

I want to show an archive menu in each page in the following manner: Today Yesterday This week Last week This month Last month Earlier How could I do that?
0
votes
1answer
124 views

Sidebar not showing up on homepage

I am using the Nameless Child Theme for Wordpress. My sidebar is showing up on all other pages except for the home (blog posts) page which is the most important page for it to show up on. My site is ...
0
votes
2answers
147 views

Add #sidebar-2 to a custom page template

I registered a few custom sidebars, and the corresponding code in my version of TwentyTwelve theme now looks like this: register_sidebar( array( 'name' => __( 'Sidebar #1', 'twentytwelve' ...
0
votes
1answer
40 views

Is it ok to chop index.php and include files?

So in my index.php I called get_header(), get_sidebar() and get_footer(). My index.php is kind of huge. It is separated into 5 divs more. How do I make it cleaner? Is it safe to chop it to files and ...
1
vote
2answers
64 views

Disable widgets on specific posts

I run a horror related blog. Google is upset with me for displaying adsense in a sidebar widget for one specific post number (4603) that contains an article about an 18+ topic. How can I disable the ...
1
vote
1answer
65 views

Call sidebar from a template

I need to call a sidebar into my header. I've switched to the new twenty twelve theme and created my own child theme. With this new theme I decided to keep things organised and together, so I put my ...
0
votes
0answers
21 views

different contents and same sidebar approach?

I have a static header, sidebar and footer and then a varying content for single.php. What is the right approach to put contents in the div=content part? Say I have 3 different pages (article, stuff, ...
2
votes
2answers
184 views

I need some direction on how to have a sidebar based on meta rather than page

I'm working on a plugin that allows the user to create "page/post types", customize the type style, then tag a page/post with that type. All of this works. My problem is this plugin also needs to ...
0
votes
1answer
108 views

Custom sidebar not showing in the dashboard

I am trying to create a new sidebar. For that I have used the following code: In functions.php if ( function_exists('register_sidebar') ) register_sidebar(); if ( function_exists ...
0
votes
2answers
948 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
0answers
73 views

wordpress pages sidebar widget missing on homepage

http://www.dual-diagnosis.org.uk/ The Sidebar widget with my links in on the right is missing from the home page, it appears everywhere else just not here, any ideas?
0
votes
2answers
503 views

How to add the sidebar in all category page

I created custom post type. I created category called product-categories. I listed all categories in sidebar.php. How to show the sidebar in all the category pages listing all the categories. ...
0
votes
1answer
478 views

add sidebar area to header of child theme

How can I add some extra sidebar locations for widgets in a child theme. The difficulty I'm having is because the parent theme uses some pretty gnarly setup to define the current sidebars. I would ...
0
votes
1answer
155 views

Show or hide custom menu widget in side bar conditionally

I have been trying and searching to accomplish this. I have the "custom menu" widgets "Members Area", "Admin Area" in side bar, assigned menus to them. Fine, they display. I want to show "Admin Area" ...
0
votes
1answer
72 views

Copy Widget Settings because of changed IDs

I want to update a customers blog to a child theme that is based on a newer version of the actual deployed theme. My problem is, the developers of the theme changed the IDs of sidebars. In the old ...
1
vote
1answer
3k views

How to insert widget areas specific to certain pages (or posts, etc.)?

I am developing a theme the pages of which (as well as posts) are so different from the home page that I want different widgets on their sidebars.Is there a way to do it? I'm calling the sidebar on ...
0
votes
1answer
81 views

Targeting specific Page Template for sidebar page

Currently, there is a sidebar dedicated to all posts, and one for all pages. What I would like to do is target specific page templates to display sidebars for each template. if(is_front_page()) ...
0
votes
1answer
33 views

Cannot retrieve author in sidebar of single.php

Within a post I can use the_author() to retrieve the author name, but in the sidebar of a single-post page this does not return anything. How to get metadata on the post author outside the post?
2
votes
3answers
343 views

How to show video from specific category on sidebar?

I need to get video and content from recent posts in specific category called "Video" and show it on my sidebar. The problem is when I need to have limited text content. so, when I use the_content(); ...
6
votes
1answer
361 views

Display Random Author with Details in Sidebar

PHP newbie here, recently decided to have a stab at cobbling together a kooky little 'Random Author Spotlight' feature into my current WordPress theme. I'm almost done, but I've hit something of a ...
3
votes
2answers
318 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
2answers
154 views

display specific sidebar for each role

Does someone know if it's possible to display a specific sidebar per user-role ? (only accessible if the user is logged as the specific role related to the specific sidebar )? What I want is to have ...
0
votes
1answer
189 views

How do I exclude portrait pictures from the nextgen gallery sidebar widget?

I have a gallery that contains both landscape and portrait pictures and want the gallery to be displayed in the wordpress sidebar. The problem is that the thumbnails of the portraits are scaled into ...
0
votes
1answer
118 views

Display Custom Field in Sidebar if Value is Present

I'm trying to use 'if' 'else' to display a link button if I have a value in the 'TourURL' custom field, and if not, nothing will display but can't seem to get the if code to work: <?php if(global ...
0
votes
2answers
137 views

How to use the empty space left and right of a post?

(WordPress 3.5.1, theme 20-11) I would like to use the red colored areas left and right to a post and can't find information on what plugin might deal with that. How can I add content there - ...
0
votes
1answer
1k 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 ...
3
votes
1answer
514 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
1answer
192 views

How to hide sub categories in sidebar [closed]

i want to hide subcategories in widget sidebar . just in widget sidebar i was added in style.css this code .children { display:none;} but this code do hide to the threaded comments what is the ...
-2
votes
2answers
400 views

IE 6~8 ignoring font, background, and margins on sidebar [closed]

I am using the default Twenty Twelve Wordpress theme with my site, and I am trying to customize the sidebar. The CSS I am using is: .widget-area, #secondary{ float: right; width: 210px; font-family: ...
0
votes
1answer
114 views

Wordpress - Allow dynamic text to be added into a sidebar upon page creation

I have a page template in WordPress that allows new pages to be created to display and explain treatment details. E.g. Chiropractor Page Acupuncture Page When a new treatment page is created from ...