-
AuthorPosts
-
August 23, 2016 at 12:12 am #676087
Hi,
in my Shop Overview Page and Single Product Pages always appear the Sidebar Blog Cat
I need that in Shop Overview Page appear the Sidebar Shop Overview Page, and in Single Product Pages appear the Sidebar Single Product Pages
I just build these widgets in Apariencia/Widgets but doesn´t work
How can i resolve this
ThanksAugust 23, 2016 at 9:51 pm #676684Hi
i can´t resolve the issue i wrote in my previus post.In the shop pages the Sidebar Shop Overview Page does´t work, and in the Single Product Pages the Sidebar Single Product Pages does´t not work too.
That´s because for to have a sidebar in portfolio_entries i this forum I found this:
Hey!
Sorry, that’s a portfolio category archives. If you want to set a custom sidebar for that then open up /enfold/sidebar.php and find line 44.
$custom_sidebar = apply_filters(‘avf_custom_sidebar’, $custom_sidebar);
And add this beneath it.
if ( is_taxonomy(‘portfolio_entries’) ) { $custom_sidebar = “test”; }
And then create a new widget area called “test” in Dashboard > Appearance > Widgets.The problem is that this solution override the Sidebar Shop Overview Page and Sidebar Single Product Pages too
How can i resolve this
ThanksAugust 24, 2016 at 5:10 pm #677130Hello,
I do not get to solve the problem.
To get a sidebar on category pages, I have applied this solution:in /enfold/sidebar.php at line 44:
$ Custom_sidebar = apply_filters (‘avf_custom_sidebar’ $ custom_sidebar);
I added this beneath it:
if (is_taxonomy (‘portfolio_entries’)) {$ custom_sidebar = “Sidebar Blog Cat”; }
And Then I have set this widget in Dashboard> Appearance> Widgets.But this solution overwrites the two WooCommerce sidebar: Shop Single Product Overview Page and Sidebar Single Product Pages both.
How can i solve this?
I need that in the category pages Sidebar Blog Cat appears.
But I need those WooCommerce sidebar also appear on their pages.
Thank you
August 26, 2016 at 6:13 am #677946Hi,
Thank you for using Enfold.
Could you please provide a link to the page / pages with the issue? And post the login details here so that we can check the settings.
And please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.
Best regards,
IsmaelAugust 26, 2016 at 4:38 pm #678207Hello, thanks for answering
Several months ago I needed to put a sidebar on category pages.
I had to apply a solution found at:
https://kriesi.at/support/topic/enfold-portfolio-categories-sidebar-menu/#post-411168For in these pages this sidebar appears categories: Sidebar Blog Cat
But these days, I installed woocomerce. And the previous solution overrites WooCommerce sidebar and not appear WooCommerce sidebar:
Shop Single Product Overview Page
Sidebar Single Product PagesInstead Sidebar Blog Cat appears.
At present, WooCommerce is not visible on the page, because I have not managed to solve this problem.
I created a couple of test products and the shop page to see the problem.
On the other hand, how I can make the sidebar WooCommerce products is placed on the right.
Thank you
August 31, 2016 at 6:34 am #679821Hi,
Please remove the sidebar.php file from the child theme folder then add this code in the functions.php file:
add_filter('avf_custom_sidebar', function($custom_sidebar) { if ( is_taxonomy('portfolio_entries') ) { $custom_sidebar = "Sidebar Blog Cat"; } return $custom_sidebar; }, 10, 1);
Best regards,
IsmaelAugust 31, 2016 at 12:52 pm #679924Hi Ismael,
thanks for your time.I deleted sidebar.php of enfold_child, and I’ve pasted the code you have sent me to the plugin code snippet.
The right sidebar is already listed in the category pages: Sidebar Blog Cat. Ok. :D
The sidebar Shop Overview Page appears on the Shop page. Ok. :DHowever, in the pages of each product the sidebar Single Product Pages does not appear. :(
Instead, Cat Blog Sidebar (the sidebar we have set for category pages) appears on pages of product.
You can see that in the test products I created.I would also like to place the sidebar pages of each product in the right sidebar. Is that possible?
Thanks for your attention.
September 1, 2016 at 7:32 am #680532Hey!
Please update the header.php file as well because there are lines of code that are missing in there. And did you modify the config-woocommerce files?
UPDATE: We updated the header.php file.
Regards,
IsmaelSeptember 1, 2016 at 12:20 pm #680659Hello
I have a local installation of Enfold and I compared the files.I see no difference between header.php and between enfold / config-wocommerce / config.php
It is true that remember trying to put the sidebar pages you WooCommerce products on the right side.
But I was careful to leave everything as it was before, because it did not work these solutions:https://kriesi.at/support/topic/enfold-single-product-page-sidebar-will-not-appear-on-the-right/
I have also disabled the options WooCommerce store, but that does not affect the problem.
The truth is that on WooCommerce product pages Single Product Pages sidebar does not appear, and this sidebar is at the base of the page, not the right.
You can see it in the test product:
I do not understand what happens … :(
September 6, 2016 at 5:36 am #682422Hi,
The position of the sidebar is correct because it is defined in the template. If you want to place the sidebar in the right or the left of the product content, please follow this post. https://kriesi.at/support/topic/sidebar-rechts-single-page/#post-580220
What I don’t understand is the incorrect widget area assignment. Please get a fresh copy of the config-woocommerce > config.php file and then override the old one. Or look for this code:
$avia_config['currently_viewing'] = "shop_single";
Best regards,
IsmaelSeptember 7, 2016 at 12:08 pm #683079Hi Ismael,
> I have updated all woocommerce plugin.
> I created a new widget ‘test’ similar to ‘Sidebar Blog Cat’ for the code you sent me:add_filter('avf_custom_sidebar', function($custom_sidebar) { if ( is_taxonomy('portfolio_entries') ) { $custom_sidebar = "test"; } return $custom_sidebar; }, 10, 1);
> in config-woocommerce > config.php the line
$avia_config['currently_viewing'] = "shop_single";
exist. It’s in its place
But the issue continues
The code for the sidebar in portfolio_entries owerride
$avia_config['currently_viewing'] = "shop_single";
and in the products’ pages the sidebar that appears is `test’ as you can see in:http://www.gardenbourguignon.com/shop/orquideas/sustrato-orquideas-bourguignon/
I don’t konw that can i do
:(
- This reply was modified 8 years, 2 months ago by ramiropuig.
September 16, 2016 at 9:33 am #687348Hi,
Sorry for the delay. We modified the snippet a bit. It is working now.
http://www.gardenbourguignon.com/portfolio_entries/accesorios-jardin/
Best regards,
IsmaelSeptember 16, 2016 at 5:10 pm #687635Thanks Ismael,
Very thankful
It’s OK now.
I received the latest update for Enfold.
If I upgrade, these settings you have done, will remain, right?
:)
September 20, 2016 at 4:37 am #688908Hi,
Yes, it should be retained after the update because you’re using a custom snippet plugin. :)
Best regards,
IsmaelSeptember 20, 2016 at 10:49 am #689056Ok
Thanks :DSeptember 21, 2016 at 7:37 am #689648 -
AuthorPosts
- The topic ‘sidebar in single product pages and shp overview page’ is closed to new replies.