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
27 views

searchform.php override not working

I'm taking a Udemy class to learn how to make Wordpress plugins and themes. The video I'm on is having me override the default search widget with a custom one via searchform.php. From what I've ...
0
votes
0answers
29 views

Retrieve the whole widget sidebar and pass it inside an html

I am trying to pass the sidebar that I have in the shop, inside a side drawer that will have the filters. I have created the HTML/CSS and the js responsible for this to work. But I am trying to get ...
1
vote
1answer
18 views

How to add an entry to the Page/Post Settings Sidebar? [duplicate]

Is it possible to add an entry to the Page/Post Settings Sidebar? In other words, can we add something here: Notes: I do not want to add a Block settings. In other words, I would like to target the &...
0
votes
0answers
23 views

Add class to anchor links and other elements in a widget

I'm building a theme that follows the BEM methodology. I've added the following to functions.php: function nav_bem_anchor_element( $atts, $item, $args, $depth ) { $atts['class'] = 'header__nav-...
0
votes
1answer
42 views

Replace Content of Sidebar on Custom Post Type

sorry, if this is a stupid question, but I am relatively new to php and wordpress development. I am writing a plugin with a custom post type (course) where a parent page is the course overview and the ...
0
votes
0answers
30 views

Custom sidebar isn't showing up on sub-category posts

I have a magazine style website that has custom sidebars. If someone posts something under the category of Culture, I have culture sidebar that shows up. Under entertainment, the entertainment sidebar ...
0
votes
0answers
117 views

Gutenberg sidebar SelectControl meta value not updating

I am have created a select option to plugin sidebar. It saves value the first time into the database but doesn't update it. I have tried this code. see JSX code. const { __ } = wp.i18n; const { ...
0
votes
0answers
30 views

How to hide the sidebar and topbar in specific admin page

I would like to hide the sidebar and top bar (refer image below) on specific page, that is to focus on the content of the page itself. Because on this specific page, I would like to get it using ...
0
votes
0answers
11 views

How do I use the default style for widget?

I added the twitter feed sidebar widget on my website, as seen below. but the theme makes the text / background unreadable. How do i use the default style for it / prevent the theme from changing it? ...
0
votes
0answers
21 views

Spoof the admin panel on the client side? [duplicate]

I'm working on some admin dashboards with a plugin that uses shortcodes that are not available in the admin panel (can't use do_shortcode() - I tried). However these are dashboards that I really want ...
0
votes
1answer
24 views

How to remove sidebar primary widget on Mobile on category page [closed]

Hello i have been trying to figure out how i can hide the sidebar only on Categories page on Mobile I tried this code: @media only screen and (max-width: 900px) { .sidebar { display: none; } ...
0
votes
1answer
13 views

Extra copy of sidebar appears in footer

I have an extra copy of the sidebar content appearing after the last post and before the footer in the output HTML. So I have one on the side in the correct position, and one at the end of the page. ...
0
votes
2answers
57 views

get_sidebar() will not work in footer.php

I moved get_sidebar(); from header.php to footer.php but it simply does not appear is being placed after the last post in the page body instead of after the footer. There are no errors displayed. What ...
0
votes
1answer
71 views

WordPress Gutenberg core/heading block (wp-block-heading)

I am really not sure how to write the code. How do I get all the headings from the page? To be specific, core/heading. I wanted to make a sidebar so that the user can just jump from one section to ...
0
votes
1answer
43 views

different sidebars depending on template (is_page_template is not working)

I'm trying to follow the instructions in this "How to show different sidebars for posts and pages in WordPress" tutorial to use different sidebars for different types of pages. In particular,...
0
votes
0answers
11 views

How to assign a sidebar to a Wordpress page when none was there before

Hi and sorry for this possibly silly question. But how can I add a sidebar to a page in WP 5.6.2 that currently does not have a sidebar? Thanks in advance for your help! Steve
0
votes
0answers
143 views

Mobile Menu and Mobile Sidebar missing

My mobile menu and mobile sidebars are not working. When I click on the icon it only adds a # sign to the url and nothing happens. I have deactivated all the plugins and activated them one by one. The ...
0
votes
0answers
15 views

Need to make sidebar responsive only when screen width is greater than 1024px

I'm new to WordPress and I want to make my sidebar responsive when the screen width is greater than 1024px. currently, the sidebar becomes responsive when the screen width is greater than 768px. The ...
0
votes
1answer
169 views

Gutenberg sidebar show input field on toggle

I have been trying to learn about Gutenberg, React, ES5, ES6, Babel, Webpack JSX for the last few days. I must say it feels like I dove into some sort of wormhole... The only thing I wanted was to add ...
0
votes
1answer
18 views

How do I get conditional sidebars for specific category archives and posts

SOLVED: Because I overlooked a basic feature I didn't realize existed. LOL. Veteran brain-lapse. My attempt at something sort of works, and could I ask for a fresh set of eyes to see what I'm missing? ...
0
votes
1answer
86 views

Passing state from child component to parent component in a Gutenberg Sidebar

I'm setting up an sidebar that include controls for some custom meta fields. I've got a parent functional component that include some inner child components, and I'd like to toggle (show/hide) ...
1
vote
1answer
25 views

display menus on all page except one?

I'm not very good at this, so please bear with me. I have a Wordpress site with sections for different cites, and the different cities each have their own nav menu which shows for all of the pages in ...
0
votes
1answer
21 views

Loading Widgets Via Child Theme

I'm using the very popular Elementor theme to build my WordPress site, but unfortunately there is not a Widgets option when I go to Appearance in the Dashboard: I need it in order to create a sidebar....
0
votes
1answer
204 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/example/wp-json/wp/v2/pages I have looked at the WordPress API documentation but don'...
0
votes
0answers
16 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' ...
1
vote
2answers
65 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
1answer
27 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
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
73 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
288 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
120 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
57 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('...
1
vote
2answers
758 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'...
2
votes
0answers
91 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
416 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
326 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
99 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
220 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
662 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
120 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
133 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
303 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
101 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
165 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
306 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
80 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
60 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
20 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
26 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?

1
2 3 4 5
16