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

1
vote
1answer
419 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
0answers
52 views

Related products Woo-commerce

I am developing an custom non Woo Ecommerce site into it .All I require is to move related products information to my side bar. Right now I have random products on my single.php. The sidebar named ...
0
votes
0answers
19 views

Script in sidebar blocks other widget's load

in my Sidebar, before the widget generated from Wordpress, I have this PHP script that fetches the latest threads from my vBulletin 4 Forum: <div class="box newtopics"> ...
0
votes
1answer
124 views

Load different single.php templates according to post layout selection

I have created a way of choosing different layouts for posts(sidebar right, sidebar left, full width). This is done through a meta box that displays radio buttons with an image for each layout type. ...
0
votes
0answers
22 views

Dynamic sidebars

I have functionality in place to create dynamic sidebars. So the user can use default sidebars or create their own sidebars. The code for creating custom sidebars: global $my_theme_option; ...
0
votes
1answer
32 views

Loop doesn't work

I'm making a box in my sidebar that shows with a loop a list of articles of a single category: <?php // The Query query_posts('cat=31&posts_per_page=5'); // The Loop while ( have_posts() ) : ...
0
votes
1answer
83 views

wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls

I am trying to make a widget which takes post id as input from user and displays images of the specified post in sidebar. wp_get_attachment_url() gets me the url but in the next line ...
0
votes
0answers
20 views

Custom options for WordPress sidebars

I am curious if it is possible to add custom options for each sidebar on the widgets page. Something like this (the part with the "Mobile" option): I'm having trouble finding a hook or action that ...
0
votes
0answers
25 views

custom sidebars don't appear in wp-customizer's widgets section

I'm adding Custom Sidebars as Post Type like here the sidebars appears correctly in Widgets page [.../wp-admin/widgets.php] and widgets appears correctly in their position .. of course i'm using ...
0
votes
1answer
95 views

Different “Text Widgets” in Sidebar on Many Different Pages?

Hi there I have a few questions on adding different sidebar texts to sidebars per page. On one part of my site, I have pages dedicated to individual animals. I have figured out how to change the ...
2
votes
2answers
835 views

How to allow admins to create a sidebar from the admin

I'm creating a WordPress theme and I've noticed that a lot of premium themes allow the users to go to Appearance->Sidebars and create a new Sidebar by simply giving it a name. The user can then Go to ...
1
vote
0answers
44 views

Can you target a widget_class in a register_sidebar?

Using Bootstrap 3 to create a WordPress theme I am using register_sidebar() for the sidebar: if ( function_exists( 'register_sidebar' ) ) { register_sidebar( array( 'name' => __( ...
0
votes
0answers
17 views

Order of sidebars in Appearance > Widgets

How do you change the order that the sidebars appear in the Appearance > Widgets page? I have code like: register_sidebar(array( 'name' => 'Home 1', ... register_sidebar(array( 'name' ...
0
votes
1answer
25 views

Does current page contain widget or sidebar

Is there a way to detect whether a specific page contains a widget or sidebar. I am aware of is_active_sidebar() & is_active_widget() which return true or sidebar containing the widget, but this ...
0
votes
0answers
55 views

How can I change sidebar position via URL parameter?

I have live Customizer on my theme and there is an option to set the sidebar position to align left or right. How can I change the sidebar position via URL parameter? For example, if my sidebar ...
0
votes
0answers
27 views

Menus Removed from Custom Widget Area

I’m hoping someone out there can help me out with this issue I’ve been scratching my head about for some time now. At my place of employment we have a WordPress site on our intranet, running a child ...
0
votes
3answers
2k views

Any available action to add content before and after sidebar?

I am looking for inserting a function's output before sidebar's first widget, and one in the end after the last widget Is it possible?
0
votes
1answer
148 views

Add the title of a widget as an ID - for anchor links

I'm currently building a WordPress theme where my page consists of widgets. One widget is a part of the page. I'd like to be able to use anchor links with them, and to do this, I would like to output ...
0
votes
0answers
20 views

Wordpress custom widget into sidebar not showing

I'm trying to add my custom fb_widget to the sidebar. The default widgets can be added. Below is the code for the widget: /** * Adds FB_Widget widget. */ class FB_Widget extends WP_Widget { ...
0
votes
0answers
185 views

How to display most popular posts from certain category in sidebar?

Assume I have a menu based on categories (jazz, rock, classic). I would like to display most popular posts (in sidebar widget) depending on which page I am (on jazz page I would like to have most ...
0
votes
1answer
33 views

Custom page template to sidebar/widget

I have a custom page template and I want it to display as a sidebar. How to do this? I google it but I did not find any articles/topics about this. Or how can I create a shortcode for this custom ...
0
votes
2answers
271 views

How to add new sidebar widget area to child theme?

I want to create a new sidebar widget area in the header of my child theme. What would be the best way to do this? Here is the code for one of the sidebars in the parent theme: <?php add_action( ...
0
votes
1answer
21 views

Sidebar at bottom however I have completely replaced theme folder back to original code

Wordpress sidebar stuck at bottom despite replacing the entire theme file(works with other themes), Help please I have been over the web and most people do not have the problem I have it seems. I ...
0
votes
1answer
51 views

How to add sidebar to Isola theme? [closed]

I am using Automattic's own Isola theme on my blog. It's a single column theme and it has a sidebar which pops up from the left if clicked on show more kind of button on the left side of site title. ...
0
votes
0answers
121 views

Add HTML wrapper around widget content

I'm using genesis as my framework but i need help to to add some html markup on my register widget. I know by default its add html mark up but I want to add more inside of it how would I do that? ...
3
votes
1answer
838 views

Display comment form of specific page in sidebar

I want to display the comment form of a specific page on a sidebar. It will look like this roughly. I tried modifying from comments.php and putting it on sidebar.php. But nothing shows up. ...
0
votes
0answers
35 views

Display the id list of active widgets of same sidebar?

The condition is i have to check the id of active widgets of one sidebar and hide some widgets based on id of the listed widgets.Any ideas ...
1
vote
3answers
97 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 ...
2
votes
1answer
4k views

What is the difference with get_sidebar and dynamic_sidebar? [closed]

What is the difference with get_sidebar() and dynamic_sidebar()? I was wondering which one I should use. Maybe one use widgets and the other one doesn't?
2
votes
3answers
4k 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 ...
1
vote
0answers
103 views

Admin sidebar element buggy on hover with Google Chrome 45 [duplicate]

I'm using OSX 10.10 Google Chrome Version 45.0.2454.85 (64-bit) And When I go through the sidebar elements on my Wordpress site it looks like this: Is this a known bug?. On Firefox and Safari ...
1
vote
1answer
53 views

Corrupt WordPress Design/Appearance [duplicate]

Has anyone ever experienced the following in terms of sidebar design corruption. This has only recently started happening, using the vanilla WordPress package from the site. I've tried multiple ...
2
votes
3answers
71 views

Load same sidebar multiple times

I came across a very different scenario where I had to use get_sidebar('recommendations') multiple times on one page. But it works only one time. It works multiple times only when I use ...
1
vote
1answer
72 views

Get custom side bar on custom post archive page

I have a custom post type called “bibliographies” and the corresponding archive-bibliographies.php file to show a list of posts. On this page I want to add a side bar that is unique to this page, so I ...
0
votes
2answers
129 views

Adding an extra sidebar to your theme

I want an extra sidebar added to this wordpress theme of mine. I want it right under my left sidebar and not next to it as it is currently showing: www.giftforgag.com. I have tried many things but ...
0
votes
1answer
38 views

Sidebar only shows up on blog page

I am currently working on a theme that uses a Page Sidebar for the Contact, About, Portfolio and Home pages, and a Blog Sidebar for the Blog page. For some reason, the Page Sidebar is not showing up ...
5
votes
4answers
4k views

Get number of widgets in sidebar

How can I get the number of widgets that are active on a specific sidebar? Is there a core function for this? I want to add a class to each widget on a sidebar based on how many of them are ...
0
votes
0answers
85 views

How to add custom sidebar on each single page?

I'm creating a book review site. I wanted the site with two columns (65% 35% respectively). On the left side as usual review of the books and other stuff should go, so no worries with that part. On ...
-1
votes
1answer
179 views

How to completely remove the sidebar? [closed]

I am custermising adamos theme with the WordPress web tool. I went to Appearance ==> Widgets, and removed everything in Primary Sidebar. But I still see ARCHIVES and META at the position of right ...
2
votes
1answer
28 views

Registering multiple sidebars with data from an array

I am attempting to dynamically register sidebars for certain pages. The pages must meet the following criteria: be published be a page (not a post) use the template 'template-generic-sidebar' In ...
0
votes
1answer
62 views

how to run a php code in widget?

I have a code to get all taxonomies and terms for a single post: $object_terms = wp_get_object_terms($post->ID, 'staff', array('fields' => 'all')); if ($object_terms) { echo '<p>' . ...
0
votes
1answer
260 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?
0
votes
1answer
252 views

Change directory where get_header(), get_footer() and get_sidebar() look for templates

I'm creating my own theme framework, and I want to organize my code, separating the partials files from the pages. But I want to do that and still use the native functions get_header(), get_footer() ...
0
votes
0answers
52 views

Get the sidebar title outside widget

I want to find a way to get the sidebar title outside of the widget area. My actual functions file: if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => __( ...
0
votes
1answer
2k views

List child terms and posts in the current term

With this code parent term page lists all the child terms and the child term page lists all of the posts in current term, and the single page lists a big flat list of terms(hierarchical). Now, The ...
0
votes
0answers
36 views

Make Twitter feed widget show on side panel, which does not exist yet in the template

I was asked to do a slight revamp of the web page Motorcycle forum, notably, to move twitter feed to sidebar, which, however, does not show. The website, although simplistic, looks quite mature, so ...
0
votes
0answers
64 views

Sidebar completely disappeared

I made a theme with working sidebars on both the right hand side of the content and in the page footer. The right-hand-side sidebar is called in index.php like this: <?php get_sidebar(); ?> ...
0
votes
0answers
108 views

Adding placeholders to the sidebar-login widget plugin

It is my understanding that you may use the filters to code the placeholders to the plugin 'sidebar-login widget'. The programmer Mike pointed me to the code location where it should go: ...
0
votes
1answer
426 views

How to List all Sidebars in a Metabox

I'm trying to add a metabox to every page that is a drop down list of all registered sidebars that is then saved in a custom field. I'm using this metabox class I've gotten as far as this: // get ...
0
votes
1answer
52 views

Create an array of “read next” posts using a dynamic offset

Writing my first theme from scratch here. I'm attempting to create a "read next" sidebar that will show the next 30 posts in a list on my sidebar in my single.php file. I know how to grab all of the ...