Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
7 views

Custom Sidebar to show in posts based on parent-child category

If you look at the following URL: http://staging.cancerwellness.com/stories/resources/ you will see that I have a custom sidebar. How can I have the sidebar that I created to be shown based on the ...
0
votes
0answers
19 views

Move to top the shop sidebar in the shop page

I've my shop page where as a mobile I see the shop sidebar at the bottom. I would like to display it at the top before the products. I have tried various solutions found on the web but I have not ...
0
votes
1answer
13 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
31 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
32 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
39 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 ...
0
votes
0answers
15 views

Filter for widget media image

There is a filter for "widget_media_image"? I'm trying to add new attributes using preg_replace but i can't find the correct filter for this widget.
0
votes
0answers
34 views

A PAGE IS SHOWING AS A POST

I have an issue with a page in WordPress, its showing as a posts page with the sticky right sidebar, I want to remove the sidebar any help ?
1
vote
2answers
13 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
0answers
14 views

Woocommerce widgets don't appear on my custom template

I have created a page in Divi theme, and i displayed the shop grid with a loop. I tryied to add in the sidebar, a widget (Filter by price), but it doesn't appear on my custom page, but in the shop ...
0
votes
0answers
10 views

Cynamic_Sidebar Content Storage

I'm trying to refresh my test environment with current data from my production environment and after copying the wp-content file structure and database, I noticed the sidebars didn't seem to update. ...
0
votes
1answer
22 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 ...
0
votes
0answers
20 views

Creating navigation menu out of page-related parent/child/grandchild relationships

I am trying to create a sidebar navigation menu, that detects what pages are related to the page you are currently viewing, and then outputs the whole hierarchy of this family-tree inside a tiered ...
0
votes
0answers
16 views

Creating dynamic Sidebar

I am newbie here, and I want to ask help regarding my issues. I am trying to create dynamic sidebar that will work same as with this site (http://www.taylor-dejongh.com/about/). there is left and ...
1
vote
1answer
85 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
41 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
18 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 ...
0
votes
0answers
8 views

Can't get rid of Blog Sidebar on homepage — HELP!

I'm brand new to Wordpress and already ran into a frustrating issue. I set my page to a static page (I'm building a page for a business, not building a blog) and would really like it to display as ...
0
votes
0answers
16 views

Sidebar with Links

Here is a link to a specific part of my blog. At the top of the page you will see a link "Topology Preliminary Exams" (in fact, that is the page I linked to in this SE post). Here's what I am trying ...
2
votes
1answer
128 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
115 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
54 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
34 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
26 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 ...
4
votes
1answer
63 views

How to avoid widgets added to sidebar on theme activation?

I am registering 3 sidebars on widgets_init register_sidebar(array( 'name' => esc_html__('Left Sidebar','creatus'), 'id' => 'left', 'before_widget' => '<div ...
0
votes
1answer
27 views

If page or sub page not working as expected

I would like to display a specific dynamic sidebar the the "about" page and its children. From the codex, I have tried the following: <?php // Begin main loop if ( have_posts() ): while ( ...
1
vote
1answer
40 views

Dynamic_sidebar inside wp_nav_menu

I have Menu created by wp_nav_menu. Inside it, I want to set dynamic_sidebar but wp_nav_menu instead of displaying the content, throws 1. Have everyone some tips for display sidebar inside ...
0
votes
1answer
26 views

Custom sidebar for custom post type

Currently I have 2 custom post types -> Events and Food. Whenever I'm posting something I use taxonomies to act like categories for them. The problem I have is: when I'm inside a taxonomy archive it ...
0
votes
2answers
45 views

My theme didn't appear sidebar area

I tried to customize my WordPress theme but it shows this error. Your theme has 2 widget areas, but this particular page doesn’t display them. You can navigate to other pages on your site while ...
0
votes
0answers
9 views

Force Customizer to show widgets in page with no sidebar

Hi i have show the widgets in front-end with this function to have complete control on html: https://gist.github.com/kingkool68/341818 how can i tell to wordpress that i have a sidebar active witout ...
-1
votes
1answer
21 views

Can't edit Contact Us form on front page

I can edit everything on the homepage except the Contact Us form. It is not a gravity form listed in our list of forms, and it is not a contact form 7 plug in. It is not a sidebar. I cannot get to it ...
1
vote
1answer
46 views

Sidebar on the wrong side of the page

I'm building a website on WordPress through a child theme based on Dazzling. The website is http://theaerogeek.com/ The problem I'm having is that the sidebar of my website is being shown on the ...
0
votes
1answer
22 views

How do I show breadcrumbs when sidebar is not applied?

Currently using the 'maisha' theme. Created custom page to display breadcrumbs for all pages, however, when a sidebar is not applied or turned 'on' in the widgets section, the breadcrumbs disappear. ...
1
vote
1answer
22 views

How to handle many different menus?

I'm developing a site that has about 200-300 pages, that each needs a custom side-menu, linking to primarily internal pages. So here's one sidebar: Link to /foo Link to /bar Link to www.example.org ...
1
vote
1answer
42 views

Show only sidebar if widgets have content on the current page

I have a sidebar in WooCommerce showing sub categories with the "Product categories" widget. However when a category has no subcategories I wan't the sidebar to be hidden. is_active_sidebar is only ...
0
votes
1answer
9 views

How to narrow the area between buttons on Helium theme sidebar? [closed]

I have WordPress based site. I used Helium theme and added a sidebar. On this sidebar, I added a few buttons from SiteOrigin widgets plugin. The buttons are being spaced between them automatically, ...
0
votes
1answer
33 views

How to enable the default sidebar area?

I have a theme created from scratch.I am able to create custom sidebar area and add widgets to it. But when i give this in index.php <?php get_sidebar(); ?> it shows some widgets rendered in ...
3
votes
1answer
39 views

Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar

Sorry for any wrong details. I am totally new to WordPress development. I am running a photo site. On single attachment page, I want to show the details (i.e upload date, filename, size, resolution) ...
1
vote
0answers
25 views

customise template to only show custom post type entries

How do I customize a template for a custom post type to only show the categories and recent entries for that post type? I'm assuming that if my cpt is "newsletter", then I start with a single-...
0
votes
1answer
27 views

Blog Image and Title in Right Sidebar

I am making some changes to how the blog is currently showing up in the right sidebar of a wordpress page. Right now there is a large image, title, excerpt, and a Read More button. I only want the ...
0
votes
0answers
55 views

the_widget() - filter only one instance

If I have 3 widget instances like: the_widget( 'WC_Widget_Cart', array( 'title' => 'Cart 1' ) ); the_widget( 'WC_Widget_Cart', array( 'title' => 'Cart 2' ) ); + the same widget assigned to a ...
0
votes
0answers
34 views

How can I get the wp_registered_sidebars in the back-end?

I need to access sidebars data in the back-end, using the global $wp_registered_sidebars but unfortunately, it fails in the back-end. Calling this: global $wp_registered_sidebars; var_dump( $...
0
votes
1answer
828 views

Can't remove woocommerce sidebar

I am using this below code to remove woocommerce sidebar, from cart and single-product page. function urun_sidebar_kaldir() { if ( is_product() || is_cart() ) { remove_action( '...
1
vote
1answer
316 views

Change sidebar headers from H1?

My theme uses H1 tags without much thought, including the site name at the top of each page and each of the sidebar menu titles. I checked the sidebar.php file in my themes folder, but there is no ...
0
votes
0answers
99 views

Product variation summary in sidebar

I have tried looking for this but unsuccessful so far. As the title states I am trying to add a summary of the selected variation in the sidebar, not move, which is all I can find. My end goal is to ...
1
vote
1answer
1k views

Custom sidebar on category pages

On my website I've two category pages, one called "agenda" and the other "artículos". I've set theme on the main menu: https://institutoschuman.org/ I'd like to have different sidebar for each one ...
0
votes
1answer
20 views

How do I fully rid of the 1px wide sidebar border? [closed]

https://paecdev.com/federal-way-performing-arts-foundation/ Arrow pointing to border in this screenshot: https://imgur.com/a/N9vmoc3 On the above page, I tried many CSS tricks, but I can't fully get ...
0
votes
1answer
20 views

Before_widget won't show up

EDIT: For those who are interested as per Tom J Nowell the problem was that I used it with my own custom widget which doesn't have before and after support. I have this sidebar and everything works ...
0
votes
1answer
21 views

Why is it so hard to add a class to the <ul> tag in the sidebar widget?

I have created a sidebar: function my_sidebar() { register_sidebar( array( 'name' => 'Blog Sidebar', 'id' => 'blog-sidebar', ...
2
votes
2answers
468 views

How do I display the “Archives” widget layout (sidebar) in Wordpress by 'year' then by 'months'?

I am using the default widget in my sidebar Archive which currently displays the archive this way: Mar 2018 Feb 2018 Jan 2018 However, I'd like it to display this way: 2018 March February January ...