-
AuthorPosts
-
March 18, 2017 at 6:41 pm #762949
Hi,
I have created a Fullwidtgh SubMenu on my Main Page, and I want to add this Menu to all my Product catagory pages and Single Product Pages. How do I make it appear on all Product categoriy pages and single product pages ? Please Advice.
Regards,
Deniz Arsan
March 18, 2017 at 9:44 pm #762992Hey kagitvs,
There isn’t an easy way to do this because the Product catagory pages and Single Product Pages don’t have their own template. But you can try to copy the shortcode for the SubMenu and add it to those pages. Here are the steps:
Try adding this code at the bottom of functions.php://set builder mode to debug add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; }
Then try to create a new page, just add the fullwidth submenu, then the shortcode would appear at the bottom. Add this to your Product Pages
This might be another option: http://kriesi.at/documentation/enfold/custom-woocommerce-shop-overview/Best regards,
MikeMarch 19, 2017 at 7:47 pm #763299“Then try to create a new page, just add the fullwidth submenu, then the shortcode would appear at the bottom. ” I dont understand thi,s, where do I get the shortcode ? I dont see any shortcode at the bottom ?
March 20, 2017 at 6:25 am #763492Hi,
Did you add the code Mike posted to functions.php? If you did then you should see an additional box under the Layout Builder window, where you can see the shortcodes. If that is not working then please post admin login details in private so that we can have a closer look.
Best regards,
RikardMarch 21, 2017 at 9:30 pm #764369OK, I get the code and I pasted the code to the Single Product Page in WooCommerce, but it does not recodnize it as a shortcode. It displays the code as I pasted on the pages, please see the link below. Please advice.
Regards,
March 21, 2017 at 11:20 pm #764416Hi!
Your shortcode listed is wrong.
There are 2 shortcodes, one inside the other
That is not properly and that is why it brakesRegards,
BasilisMarch 21, 2017 at 11:33 pm #764422ok but this is what is written on the shortcode of the page; After I pasted the code above to the Functions.php, this is what is written on the page I created and I then insterted the Fullwidth menu on the page. Can you please tell me where I am doing wrong ?
[av_submenu which_menu='' menu='274' position='center' color='main_color' sticky='aviaTBsticky' mobile='disabled']
[av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='']
[av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='']
[/av_submenu]March 21, 2017 at 11:50 pm #764436I now wonder if I paste the code in the correct place ?
March 22, 2017 at 6:49 am #764594Hi,
The codes went out of bounds :D Try to post your code in http://pastebin.com/ and post the link here. :)
Best regards,
NikkoMarch 22, 2017 at 12:56 pm #764745I hope I did it right;
March 23, 2017 at 12:38 pm #765375Hi,
Yes, you posted it right :) It doesn’t process the shortcode because you need to put it inside this function:
do_shortcode();
Try using this code instead: http://pastebin.com/hkr9vc8A
Hope this helps :)Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.