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
24 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
27 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
12 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
0answers
11 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
24 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
17 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
39 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 ...
0
votes
1answer
40 views

Can't replace the default sidebar with a custom sidebar on Custom Post Type in Genesis

I have an archive template ("archive-reviews.php") for a Custom Post Type I have created. I'd like to replace the default archive sidebar with a different one that I have created using the Genesis ...
0
votes
0answers
12 views

Backend Sidebar Add Another Post Menu

Once logged into WordPress, looking at the sidebar menu. How can I make another Post Page Menu with a different name? Then make my own posts under that new Post page. If Pages are pages, and Menus ...
-1
votes
1answer
17 views

How do I insert a photo at the top of the sidebar?

http://www.beautybykatlin.com/ Hello, How do I add an image at the top of the sidebar? I had one there but I deleted it and I don't know how to get it back. Please help!!! Thank you!
0
votes
1answer
24 views

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

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
26 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
21 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.
0
votes
1answer
17 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
69 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
68 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
61 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
36 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
38 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
124 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
30 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
17 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
61 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
19 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
53 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
34 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
39 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
15 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
40 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
31 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
23 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
60 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
26 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
83 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
33 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
47 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
36 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
100 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
56 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
108 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
82 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
89 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
114 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
466 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 ...