Stack Exchange Network

Stack Exchange network consists of 174 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

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 ...

0
votes
0answers
10 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
20 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 ...
0
votes
0answers
11 views

Fix “In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer”

I implemented AMP on my WordPress site with the Automattic Plugin and set up a Sidebar using <amp-sidebar>and a headerbar using AMP Project documentation. Right now, when I try accessing the AMP ...
1
vote
2answers
24 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 ...
0
votes
0answers
13 views

How to activate multiple sidebars programmatically

I tried to develop a plugin which creates a custom sidebar & a custom widget, and adds the widget to the sidebar. However, I am not able to activate/display the custom sidebar in the site ...
3
votes
1answer
59 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
17 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
19 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
21 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
0answers
37 views

How to display custom sidebar on archive page using CPT?

I have created a custom post type called spm_video. I will create some custom taxonomies as well like: Speaker, Video Content, Video Tags, etc. I have copied the archives and single posts.php so ...
0
votes
0answers
14 views

add Boolean / setting / meta data to PAGE via add / edit section of admin for use in theme

I would like to add an attribute / Boolean variable / meta data to a page when editing / adding via admin (right hand sidebar), that is then accessible by my theme for sidebar creation and navigation ...
0
votes
2answers
31 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
34 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
18 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 ...
0
votes
1answer
35 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
30 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
26 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
26 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
18 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
19 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
428 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
72 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
67 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
654 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
17 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
0answers
18 views

Scrolling Sidebar Issue At Page Bottom

I have this code I put together for a scrolling sidebar and it's been working great. The only issue I'm having is getting to to stop scrolling at the bottom of the page. What's currently happening is ...
0
votes
1answer
19 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
0answers
54 views

Bulk edit (sidebar options) in posts

I would like to know how to add "Sidebar options" (screen - http://joxi.ru/E2pk8j5IBdLX8m) from posts into the existing WP Bulk Action > Edit functionality.
0
votes
1answer
20 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
127 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 ...
1
vote
1answer
21 views

Add custom element ID depending where the widget place is, sidebar or footer

I'm creating a custom widget and I want to return a different element ID. The ID would be something like, instafeed-sidebar and instafeed-footer. This is depending where the widget added. Register ...
1
vote
1answer
64 views

Missing argument 2 for a custom function widgets_init

I am using a theme_mod string from customizer to generate custom sidebar, but it is called from another function. This is my code: function call_sidebar_function() { if ( get_theme_mod( '...
0
votes
0answers
20 views

Single Sidebar; multiple templates! How?

I am calling the typical get_sidebar() method to produce a vertical sidebar on posts/pages. Because of the responsive and multiple format nature of our site, the designer decided to make full-width ...
0
votes
1answer
28 views

how do i get my sidebar above content on nanomag theme

my site when it loads in a responsive mode the sidebar is below almost everything else is there any way I can move it up a bit, any css i can put the theme is nanomag
0
votes
1answer
36 views

sidebar parameters (before_widget, before_title) not Working

I have just recently tried to use the sidebar parameters (before_widget, before_title) but html tags i used inside are not working function noorband_widget_setup(){ register_sidebar(array('name' =...
0
votes
1answer
174 views

Remove Sidebar from Wordpress [closed]

I successfully removed or hide all sidebar text on my website. Unfortunately the sidebar still remains (it's just blank, doesn't show anything). This makes my page not appear wide enough. How can i ...
0
votes
0answers
20 views

Sidebar footer section is not updating

I have updated the text in my footer section and then I save it. The changes reflect for me when I'm logged in and working on the site. When I log out and view the site as a guest then the changes do ...
-1
votes
1answer
32 views

Add widget/shortcode to sidebar OUTSIDE of the theme

I have a theme that shows a boxed layout. Meaning that on the left and right side there is space where no widget can be placed. I'd like to add advertisement there through a plugin, for this I need to ...
0
votes
1answer
452 views

Can't see widget areas in my customizer

I've registered 7 Sidebars in my template, I can see them correctly in the Apparence > Widget panel and my front-end, but I can't see them in the Theme Customize, when I click on my Widget section I ...
1
vote
1answer
34 views

How can I get the first section of a page 100% width, while the rest will have a sidebar? [closed]

I'd like to have on all my pages - except the index/blog page - a usual widget sidebar. But on the very top I will need 100% of the width for a table. The header with the page title is already at 100% ...
0
votes
1answer
49 views

if statement with is_active_sidebar()

I found a code in my sidebar-content-bottom.php in the theme itself that I don't really understand. if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) { return;} ...
1
vote
1answer
21 views

Can wordpress post and sidebar remain visible after scroll?

My problem is that I have a long sidebar and most posts are somewhat short so when the user scrolls down after the end of the post they only see blank space on the left and just the sidebar on the ...
0
votes
0answers
22 views

Changing the content of the accordion with the contents of the post selected by the menu in the sidebar

I am currently working on displaying the contents of CPT posts in the specific accordion fields depending on the selected link in the menu. The entries menu is displayed in sidebar. So I created my ...
3
votes
1answer
60 views

Wordpress widget new instance creates content duplicates

I have a custom made widget that I wrote and I want to display two instances of the same widget in the same widget area. When I drag and drop new widget instance to the widget area inside admin panel ...
0
votes
0answers
22 views

Redux Framework $wp_registered_sidebars return empty

I have the problem when I am use get_wordpress_data() method for get sidebars list. The array return empty, beacause $wp_registered_sidebars is empty. I try with my own function and have the same ...