Skip to main content

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
0 answers
9 views

Hide Dashboard and Profile from non admin in sidebar

I want the Dashboard and Profile tabs to be hidden from users who are not administrators in Wordpress. Specifically, I created a user group order_manager and I want it to have access to orders only, I ...
Anthony's user avatar
0 votes
0 answers
19 views

Making theme translation available crashes sidebar

I have added this snipped to enable possibility to translate a website: function florial_setup() { /* * Make theme available for translation. * Translations can be filed in the ...
Flagmans's user avatar
0 votes
0 answers
77 views

Custom Block: Adding "Post Type" dropdown to Sidebar Settings

I'm pretty new to React, so I'm trying to find the simplest and most PHP-based way to achieve my goal. What I've accomplished so far Created custom blocks using the @wordpress/create-block package. ...
beat's user avatar
  • 43
0 votes
0 answers
15 views

Trying to Make a Sidebar/Tab on Specific Posts

I have searched and contacted some plugin providers but couldn't find what I am looking for. In summary, I am trying to make a Sidebar that details the hotel and course info next to a post. Something ...
zelosleone's user avatar
0 votes
1 answer
37 views

Side bar only if it's not a single post or a specific page

I'm trying to make my sidebar appear only if it's 'not a post' or if it's 'not a specific page'. This is what I've tried. <?php if (!is_single() || !is_page('about') ) { get_sidebar() } ;?> <...
chrisrubb's user avatar
0 votes
1 answer
36 views

how can i modify the default wordpress sidebar

I need to hide the Uncategorized category from the default sidebar. I edited the file wp-includes/widgets/class-wp-widget-categories.php, but I did not see any changes. Here is an image of my sidebar, ...
waqas023's user avatar
0 votes
2 answers
51 views

adding a (left or right) sidebar with underscores

I recently installed underscores but all the content supposed to be in the right sidebar (set with a widget) is under the main content: [https://test.sacconicase.com/case-vacanza/italia/toscana/marina-...
Andrea Sacconi's user avatar
1 vote
1 answer
23 views

Add custom settings to widget areas

I'd like to add settings to sidebars defined in my custom theme - sometimes, for example, I'd like to be able to set a widget area to not display. Is this possible, I can't find any references for it?
toby1kenobi's user avatar
0 votes
1 answer
45 views

Display different sidebar based on search results from one category

I have a website with a plant index page. It has a custom sidebar using A-Z Listings and a search form that only returns results from the 'plantindex' category. When using the sidebar search form, say ...
Commandrea's user avatar
0 votes
0 answers
47 views

Can't edit the widgets sidebar or footer

Why can't I edit my widgets sidebar ? website can be found here.
Crypto Coupons's user avatar
0 votes
1 answer
258 views

Need Help With Making Full-Width Template for Blog Posts (common methods aren't working)

I've been researching this one for a while and can't seem to find the solution. But, I'd like to have a selectable template that I can use for certain blog posts to make them full-width by not ...
LK.'s user avatar
  • 3
0 votes
1 answer
22 views

Sidebars panel in customizer

I write a template and I want to create a panel like widgets panel for footer. I register some sidebar which represent the columns of the footer and I want to create a panel which contains section for ...
ryan's user avatar
  • 1
0 votes
1 answer
178 views

How to tell if a dynamic sidebar is being displayed on page?

I'm trying to conditionally add a class of has-sidebar to a wrapper div, and I'm struggling to find a conditional statement to see if the sidebar is active on the current page. For example: <!-- ...
Sackadelic's user avatar
0 votes
1 answer
39 views

How can I show second most recent post in sidebar, if most recent post is open in the browser?

I am working on an online magazine in WordPress PHP. I created a custom post type (article) with 4 available custom categories. In the sidebar I want to show the most recent post of all the 4 ...
Curious Programmer's user avatar
0 votes
1 answer
100 views

Interpretation and explanation of register sidebar

can someone please explain the following: esc_html '<section id="%1$s" class="widget %2$s">' From the following block of code: function daniels_widgets_init() { ...
TBV Translation's user avatar
0 votes
1 answer
345 views

Wordpress sidebar content moving to bottom of page

Ever since my previous website update (developer no longer with me), I am having an issue with Wordpress widgets on my sidebar moving to below the content, rather than remaining on the sidebar on ...
DieselDog's user avatar
0 votes
2 answers
728 views

CheckboxControl does not visible change

I use the following code to add a custom option in the Gutenberg-sidebar. Its visible and saving the Checkbox-value works. But: if I click on the CheckboxControl nothing visible changes on it. If it ...
Thomas Zwirner's user avatar
0 votes
0 answers
295 views

Wordpress Gutenberg - Sidebar get posts list based on selected category

I need to display the complete posts list in the dropdown list in the custom block sidebar. I used for that withSelect: ... const currentPostId = select('core/editor').getCurrentPostId(); ...
Venizia's user avatar
  • 161
2 votes
2 answers
525 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 ...
Daemonleak's user avatar
0 votes
1 answer
216 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 ...
Efstef's user avatar
  • 11
1 vote
1 answer
359 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 &...
philippe_b's user avatar
0 votes
1 answer
188 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 ...
Tioata's user avatar
  • 1
0 votes
0 answers
73 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 ...
paulwk's user avatar
  • 3
0 votes
0 answers
16 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? ...
NmNm's user avatar
  • 1
0 votes
0 answers
23 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 ...
techiechic's user avatar
0 votes
1 answer
201 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; } ...
Marianne's user avatar
0 votes
1 answer
60 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. ...
posfan12's user avatar
  • 117
0 votes
2 answers
616 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 ...
posfan12's user avatar
  • 117
0 votes
1 answer
326 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 ...
ddd's user avatar
  • 7
1 vote
1 answer
242 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,...
user204381's user avatar
0 votes
0 answers
12 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
Steve's user avatar
  • 1
0 votes
0 answers
41 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 ...
Reyansh Kharga's user avatar
0 votes
1 answer
617 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 ...
Leadhood's user avatar
0 votes
1 answer
180 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? ...
David Borrink's user avatar
0 votes
1 answer
378 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) ...
Paolo Sacchetti's user avatar
1 vote
1 answer
30 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 ...
Lina's user avatar
  • 11
0 votes
1 answer
174 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....
HappyHands31's user avatar
0 votes
1 answer
451 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'...
user8463989's user avatar
0 votes
0 answers
30 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' ...
Sharon's user avatar
  • 101
1 vote
2 answers
241 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 ...
Andrea's user avatar
  • 11
0 votes
1 answer
44 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...
Deep Shah's user avatar
  • 115
1 vote
0 answers
17 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 ...
Deep Shah's user avatar
  • 115
0 votes
0 answers
17 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 ...
Mark Matthews's user avatar
0 votes
1 answer
308 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 ...
JoN's user avatar
  • 1
0 votes
1 answer
505 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 ...
jdougherty2282's user avatar
1 vote
1 answer
271 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 ...
p01ntbr34k's user avatar
0 votes
0 answers
203 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('...
DonCoryon's user avatar
1 vote
2 answers
2k 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'...
Bruce Banner's user avatar
2 votes
0 answers
240 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 ...
The Waziristani's user avatar
2 votes
0 answers
809 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 ...
Sin Medias's user avatar

1
2 3 4 5
16