Magento 2: Adding Categories Sidebar - php

I am using Magento 2.1 with a custom theme. The theme has the left sidebar file:
/app/design/frontend/.../Magento_Catalog/templates/navigation/left.phtml
How do I display this file on my homepage and category pages as a left sidebar? Do I need to create a new block and somehow reference this file?
I don't want to use another module when showing this sidebar should be so easy.

Download this free extension to show categories on homepage in Magento 2 in sidebar.
https://github.com/ibnab/magento2-home-categories

Related

How to add custom navigation sidebar in wordpress

I want to create a tutorial site like https://www.runoob.com/ by using wordpress. I want to create some pages, for example /java , and some subpages, for example /java/java-tutorial and /java/java-intro .
I want to show a navigation sidebar in each of these subpages. I want the sidebar list all links of the subpages. How to do it?
Thanks!
Add a Navigation Menu to Sidebar in WordPress
You can easily add navigation menu in your WordPress website using the WordPress dashboard. Login to your WordPress website and go to dashboard then-
Go to Appearance > Widgets
Under available widget area find your navigation menu you want to add.
Drag and drop the menu into main sidebar widgets area
Add a name of the menu and select from the drop-down where you want to use it.
Create a custom sidebar for WordPress website
There are a lots of plugins available for custom sidebar navigation menu. Here in this tutorial we are using Custom Sidebars — Dynamic Widget Area Manager plugin to create our custom sidebar for specific pages. This plugin offers you so many customization options. With the help of this plugins you can create multiple sidebar for multiple pages.
Download this plugin from WordPress plugin page and activate it. after activating the plugin go to your dashboard and then Appearance > Widgets. If the plugin is running successfully then you will able to see the option Create a new sidebar
From this page you can choose a name of your sidebar and add some description about it. If you want to create multiple sidebar then you should give a related name for each sidebar so that you can easily understand that which sidebar for which purpose. You can see all of your sidebar in custom sidebar section
Now from the Available Widgets area you need to drag and drop element you want to display in your sidebar.
For better understanding you can follow this article

Can't get Sidebar to show on Archives page (Wordpress, Elementor Pro+GeneratePress)

I am trying to make an Archive Template for Wordpress using Elementor Pro and GeneratePress theme.
My posts and pages show the Sidebar (using the Default template) like it should but when I create a template for Archives using Elementor, the Sidebar isn't showing both in the builder and live site.
I tried the Default template, Full width, playing with the Fonctions.php but nothing seems to make the Sidebar appear. I Know I can make a 2 colums Layout and put the Sidebar Widget using Elementor but I would like to avoid that.
With Sidebar:
https://pasteboard.co/IXxJQ7E.png
Sidebar not shown:
https://pasteboard.co/IXxK6uv.png
doesn't best solution but works:
create a new page as custom archive page via any custom link (look like to archive link) and redirect your archive links to new archive page link (by 301 redirect)
/category/archive/ ⇒ /archive-page/
/archive/ ⇒ /archive-page/

Wordpress sidebar doesn't load on product attributes archive woocommerce

I am building an e-commerce store on Wordpress using Woocommerce.
I have created a sidebar with filters etc. that work fine on normal category and shop archives.
Working sidebar image
.
The problem is that when I go to an attributes archive (e.g. /brand/xxxx) the sidebar does not load.
Not working sidebar image
.
I have tried creating a product attribute template in the /woocommerce directory by creating a taxonomy-pa_brand.php file but that did not fix it.

custom widget including both theme n plugin?

Looking forward adding page attributes to woocommerce product page as my website WordPress picks up default sidebar or custom sidebar of responsive theme. so how can I have custom widget on product page which includes woocommerce widgets n not default page widgets of theme.
Install WooSidebars plugin by Woothemes
In Admin panel, go to Appearance/Widget Areas, then create your custom widgets.
Kindly check image which explains well

Prestashop sidebar columns

I have installed a theme in prestashop 1.6 and I'm trying to enable the left sidebar in products list page AND to product page only.
But when I go to "Advanced settings" of the theme, I can't find those two pages, as you can see in the image below.
Is there another way to enable the sidebar in some pages, hard coded or from the database? Or any other solution?

Categories