Questions tagged [sidebar]

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 an administrator of the site can customize.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

Best practices regarding the creation of custom widgets?

I am creating a theme, and I need to create and register a couple of custom widgets for my sidebar. I need to extend the widget class (for every widget) to do this, which produces a metric ton of ...
0
votes
0answers
10 views

Use Custom Taxonomies as menu and sidebar

Nice to come back coding. I'm working on my new projet: http://www.abraselemcasa.com.br/ There, I have custom posts ans custom taxonomies as you can see below: The fist one is no hierarquical ...
0
votes
0answers
26 views

My custom widget goes AWOL

5/10/2020 11:00:26 AM I have creted a widget. Yay me! In the admin panel I put my widget on a sidebar. OK, it looks good and does it's job. But, when I go live, my litle widget is...gone! No show. I ...
0
votes
0answers
16 views

How do you insert code into the sidebar?

I would like to add code to the top of the sidebar. When I do: add_action('get_sidebar', 'function') It adds above the sidebar DIV. I would like to insert inside the DIV. If I do: add_action('...
0
votes
0answers
10 views

WooCommerce - list products AND subcategories together in a-z order. Possible?

in a website i am creating (not live yet) i have products in a main category. I also have subcategories that have other products in them. I know that WooCommerce can display subcategories and ...
1
vote
2answers
28 views

Inject PHP code into “sidebar-content” - code before my WooCommerce sidebar widget?

I am trying to add some PHP code before my WooCommerce product page sidebar content and can't for the life of me find where to do that. I have tried editing sidebar.php, using the 'woocommerce_sidebar'...
1
vote
0answers
15 views

How To Remove/hide some specific categories from two different categories widget from sidebar

I have two categories sidebar widgets with different topics on my site. I want to hide some specific categories from each of the widgets. Is there any way to do so? Suppose I have total Categories ...
1
vote
0answers
10 views

Add Icons to the Product Category Sidebar Widget WooCommerce

I have been searching for this since yesterday. It's weird the little info is there about this simple function, I suppose that's because the answer is too obvious. But I didn't find the way to display ...
0
votes
0answers
26 views

sidebar in 2020 theme as a widget

I am using the default 2020 theme for my wordpress site which has a static page displayed as the front-end. Now I want a sidebar (right) to display my links (blogroll) and recent posts. Where is the ...
0
votes
1answer
24 views

How to fix error message to edit sidebar widget text on a livesite childtheme?

My WordPress livesite says "An error has occurred. Please reload the page and try again" when I try to edit the sidebar widget text of a twentysixteen child theme. I copied the website to localhost ...
0
votes
1answer
29 views

Force Sidebar on Full Width page

Any WP theme editor php gurus out there? So I'm using a theme that allows me to force all pages to full width. I have over 10,000 pages. It also forces my posts to full width too. I'm pretty sure I ...
0
votes
1answer
35 views

How to edit woocommerce sub-category page

I am trying to make a product listing site using WooCommerce. Now the system is when someone clicks on any category, they go to the subcategory page. I want to add a sidebar with all product ...
0
votes
1answer
54 views

Get or set values in post meta

I've built this theme option, based on the following tutorial https://rudrastyh.com/gutenberg/plugin-sidebars.html#registerPlugin but now I'm having trouble figuring out how to send the post/page ...
0
votes
2answers
29 views

Gutenberg get wp registered sidebars

In my template I have registered several sidebars with function register_sidebar(). Now I am looking for a way how to get list of all registered sidebars in Gutenberg. I was looking in documentation ...
0
votes
1answer
27 views

How to make sidebar float right and site content left

am trying to develop my own wordpress custom,am having problems trying to add a sidebar float left e.g something like Twenty Sixteen theme. please help am still learning. Thank you.
0
votes
2answers
36 views

How do I set is_active_sidebar?

I have a Page like: <?php /* Template Name: Agenda */ get_header(); ?> <div class="wrap"> <div id="primary" class="content-area"> <main id="main" class="site-...
0
votes
1answer
41 views

Stop Expansion of Top Level Menu in the WordPress Admin Sidebar

Can anyone tell me how to stop the top level menu items in the WordPress Admin sidebar auto-expanding when that top level item is clicked, or a submenu item chosen from the fly-out menu? For clarity, ...
0
votes
1answer
32 views

How can I have sidebar widgets on Twenty Seventeen theme on all pages?

How can I have sidebar widgets on Twenty Seventeen theme on all pages? Right now it's possible only on Blog page, not on any other page. Thanks for any help, Afan
0
votes
0answers
21 views

single post specific sidebar containing related posts

I need to create related post left sidebar navigation for the post, a different sidebar for a different post… you can visit this URL I want exactly like this: check this link
0
votes
0answers
20 views

How to increase the Wordpress sidebar width?

I currently use the Hestia theme for Wordpress. I searched for the increase of the Sidebar width on Google, but that did not help me at all. Basically I just want to increase the sidebar and decrease ...
1
vote
0answers
31 views

Wordpress CPT save metadata in gutenberg

I'm trying to wrap my head around the new sidebar api vs metabox issue when trying to come up with how to save metadata for a custom post type. I've got a couple websites I'm going to be creating that ...
0
votes
1answer
24 views

The WP home page corrupted after switching to new theme

We are an office in The university business incubator as one company and in site of the university, our parts have had some problem after switching to new theme. one of Employee of this university ...
0
votes
0answers
37 views

Editor Sidebar CheckBox Function

EDIT: I am looking for an example function to put a checkbox in the sidebar of the editor. I prefer to copy/paste without needing to learn Java-Script first. See below for more details. The Problem ...
0
votes
1answer
17 views

Different Sidebar for same Taxonomy

I am using a wordpress site with coupon theme i purchased it from fametheme. They used taxonomy to create store and coupons. In taxonomy (Store, Coupon) there are same sidebar. If i wrote in sidebar ...
0
votes
0answers
23 views

Is there a way to create a sidebar of bullets

On each individual post im trying to create a sidebar for my sources of information. is it possible to have a sidebar labeled sources with bullet points coming from it that im able to put links?
0
votes
1answer
26 views

Remove sidebar on single page using plugin API

I’m building a plugin that requires a full width page for a large table. I want to control the sidebar on that page regardless of the theme being used. How do I either, remove the sidebar ...
0
votes
0answers
40 views

How to create a collapsible side menu using a walker?

I'm using wp_list_pages($args) to create a side navigation. I need to make the menu collapsible on mobile. Using a custom walker, 'walker' => new sidebar_walker(), within the $args and then class ...
0
votes
2answers
47 views

Dynamic sidebar rendered in another place than i would like

I'm trying include dynamic sidebar to Uncode Theme. I created child template, then I created all files and now I have a piece of code who shows content and sidebar area. In functions.php I created ...
0
votes
1answer
255 views

Add class to <ul> on sidebar widget

I have been looking on stack overflow and the web but can't find a simple solution for this. I just want to add a class to the of the widget sidebar generated by Wordpress. This is my register ...
0
votes
0answers
16 views

Get sidebarname in widget on the adminarea side

I'm working on a custom widget. When on the widgets.php page in the admin area (so not the front-end) of the WP site I want to dynamically get the sidebarname of the current sidebar inside my widget. ...
0
votes
2answers
57 views

dynamic_sidebar() stopped working

A custom page template which has been in use for 3 or 4 years which rendered a custom sidebar has suddenly stopped rendering it. I can't for the life work out what the problem is. /* functions.php */ ...
0
votes
1answer
129 views

Adding widget to sidebar which contains current page's submenu

Need to insert the sub menu of the current page into the current page's sidebar. Is this possible? What I'm interested in developing would be a menu that looks like this: menuItem1 => subitem1, ...
0
votes
1answer
60 views

Co-author plus: list of posts by authors in the sidebar

I am using co-author plus. I would like to display all/recent posts by authors of a post in the sidebar. Is there a way of doing that? Plugins like Author Recent Posts do not work with Co-author plus. ...
0
votes
1answer
35 views

Disable Sidebar on certain pages

Good day! How do you disable/remove sidebars in certain pages? Do I need to install a plugin(what plugin)? Or should I do a custom code? Thanks.
0
votes
1answer
43 views

Sidebar pagination posts not shown when sidebar is in single.php

A quick question. So I have created a loop in a new file called sidebar-extra.php which I include via the header.php into my single.php file. Problem: when I go to a post (single.php), I can't see ...
-1
votes
1answer
166 views

How to create a post template with two sidebars

I'm looking for a way to have a post template that has two sidebars, one on the right side, the other on the left side, with always the same content on each one of them. I defined that left sidebar ...
0
votes
1answer
116 views

Display child-page links in sidebar on both Parent Pages AND Child Pages

I am currently developing a WordPress website that has a sidebar on most of the pages, this sidebar is supposed to display a small navigation of any child pages that are under the current parent page ...
0
votes
1answer
256 views

Gutenberg sidebar example does not update meta field in the database

Gutenberg example for creating sidebar https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/ does not keep what is entered in the box. After refreshing ...
3
votes
2answers
573 views

Show missing Sidebar from Gutenberg admin area

I hid the custom sidebar from Wordpress example https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/ by pressing remove from toolbar star in the panel. ...
0
votes
2answers
184 views

Problem adding sidebar to Underscores theme

I have been struggling with this for hours now, any help appreciated. I am using Underscores theme with one sidebar (sidebar-1, on the left) and Custom Sidebars plugin so that I can have different ...
1
vote
2answers
14 views

Same date is repeating on my custom 'Most Recent Posts' on sidebar

If you look at the 'most recent posts' on my sidebar for my posts page, you can see that the 'date' is repeating. The code and page is below. Any help would be appreciated. Thanks! https://...
0
votes
1answer
41 views

How to add custom php file to right sidebar?

I have created a quick contact form php file where visitor click it slides out a contact form to fill the details ,to add in right sidebar how to add in every pages and post any help how to add in ...
2
votes
1answer
273 views

How to replace WordPress sidebars (widget areas) with Gutenberg

I'm trying to build my first Gutenberg theme, and I want to build a page template with the layout as shown below: Pre-Gutenberg I would have built widget areas into the page template to create the ...
0
votes
2answers
59 views

Sidebar by Category Conditional Statement not functioning

I have two categories for my posts, "event" and "long-term-leasing." I have sidebar-events.php and sidebar-long-term.php. I wrote a conditional statement in single.php, but when I view a post it only ...
0
votes
1answer
24 views

unordered list loop not showing up in sidebar

I have a custom sidebar named "sidebar-events" that should only display posts in the "Events" category. I placed the following code in the sidebar. The header appears, but not the unordered list. In ...
2
votes
1answer
491 views

Show all posts in sidebar in single.php

Wordpress 4.x Why does the loop.php only show the current post in the sidebar when I view a post in single.php? I have: Post One Post Two Post Three If I view "Post One" (single.php), the sidebar ...
0
votes
1answer
314 views

How to display products in sidebar in 2 columns?

I would like to put products view to sidebar on each blog page. However, it prints 3 columns by default which does not really look nice: I tried these approaches: 1) Editing functions.php of my ...
0
votes
1answer
162 views

Cold Fusion to Wordpress

I've been tasked with moving a website from cold fusion to wordpress. In the old site there are several templates that are brought into the site via cfinclude. I've coded most of a custom wordpress ...
0
votes
1answer
76 views

Add a class to a dynamic sidebar's wrapper

I am making a plugin to display featured pages of a site, but it depends on a flex container and i cannot assure that a user's sidebar is going to have a display of flex. However, looking for ...
1
vote
2answers
33 views

Adding sidebar to template creates horizontal gap the size of the side bar

I have been killing myself trying to figure this out on my own. And I for the life of me cannot figure out what is causing my issues. I created a template for the testimonials page and used custom ...

1
2 3 4 5
15