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
0
votes
1answer
19 views

Sidebar endpoint using WordPress API

I cannot find any info on this. Is there a default endpoint for sidebars? For example pages: http://localhost:8888/digifacelive/wp-json/wp/v2/pages I have looked at the WordPress API documentation ...
0
votes
0answers
12 views

How can I create a 'sub-blog' which has its own sidebar on individual posts?

I've created a WordPress site with a blog which has several categories of posts. One category, 'News', is a special one, and should display separately ('News' posts will only ever be tagged as 'News' ...
0
votes
0answers
11 views

Sidebar product categories by user roles

I'm setting up a website for a client and he wants to show certain product categories based on user roles on his sidebar. I already have all products hidden by role, but I can't hide them on sidebar ...
1
vote
2answers
40 views

Dynamic Sidebar for subcategory of a category

I have a site with many product categories and subcategories. I need to show the same sidebar as the primary category in the subcategories as well. Example: Wine (sidebar 1) White Wine (sidebar 1) Red ...
0
votes
0answers
8 views

Display URL from Widget content inside href=“”

I'm creating list of social networks. I displayed on front-end and styled in code. Now I want to have option in Widgets to change URLs for each socia network. I created sidebar: register_sidebar( ...
0
votes
1answer
20 views

how to display sidebar on pages in wordpress

I want to display custom field's content in the sidebar on specific pages in WordPress so can anyone have an idea about it then please share it with me. Thanks In Advance...
1
vote
0answers
13 views

How to display custom sidebar in wordpress 5.5.2

I am trying to display a custom sidebar in worpress 5.5.2 latest version but i have registered one sidebar in functions.php and in sidebar i want to display it so i put code to display in sidebar.php ...
0
votes
0answers
22 views

Toggle Sidebar Menu for Wordpress: How can I get the second click on parent to go to its link?

I created a sidebar toggle menu from this ancestor tree function. I am trying to make it so that when a parent item is clicked, it opens the submenu, and then only when the child menu is already open, ...
0
votes
0answers
19 views

How to disable items from “More tools & options” in Gutenberg blocks for non admin users

I would like to disable items from "More tools & options" for non admin users. There are a lot of settings that I don't want to grant access to non-admin users I found something like ...
0
votes
0answers
7 views

How can I add custom class to a link in the navigation menu after attaching it to a widget?

I added a widget called "Footer-1" by adding the following code to my functions.php class register_sidebar([ 'name' => esc_html__( 'Footer Column 1', 'wp-bootstrap-...
0
votes
0answers
12 views

How to Add Content Above Sidebar

I am trying to add a block of clickable photos above my sidebar, similar to a heading. I can't quite figure out how to do it. I have looked around in my Widgets with no luck. barbellsandblessings.com ...
0
votes
0answers
18 views

Move twentyseventeen sidebar to the left in posts

What css can I use to move my sidebar widget area to the left please?
0
votes
0answers
49 views

How to share widget content within a custom sidebar across a Multisite

I am creating a Wordpress Multisite and I need a sidebar that will display on all the child websites but where the content will be added and changed from the parent main site. I have looked into ...
0
votes
0answers
111 views

Multiple Select on Gutenberg Sidebar as metakey

I want to show a multiple select element in the sidebar when editing a page in admin, where I can save the selected values in a metakey. Of course also load the selected values upon load of page-edit ...
0
votes
0answers
13 views

Sidebar not displaying (theme development)

I'm developing a theme via an online course and I can't get the sidebar to display. I've used the hook widget_init and the function is being called because I can echo text out. Index.php is correctly ...
0
votes
1answer
27 views

Need to delete the sidebar widget area and have the page a full page rather than just have a blank widget area

A recent post on how to remove the archives and meta from the sidebar answered a question I had and I was successful to have the left side of the page blank. The post was at Can not Remove Archives ...
0
votes
1answer
69 views

Trying to style Woocommerce sidebar Cart Widget [closed]

I have looked at length to find CSS that will change the background color, border radius and product info text color. I think this may not be a "mini cart". The price of the item, subtotal ...
1
vote
1answer
51 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
11 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
34 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
27 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
36 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
262 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
26 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 ...
2
votes
0answers
174 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
213 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
45 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
68 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
289 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
77 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
69 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
112 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
49 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
99 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
131 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
1
vote
0answers
49 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
35 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
1answer
19 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
25 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
62 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
2answers
62 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
681 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
2answers
243 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
347 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
163 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
38 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
58 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
374 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
218 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
396 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 ...

1
2 3 4 5
16