-
AuthorPosts
-
February 4, 2021 at 5:06 pm #1277751
estou criando um site , e gostaria que na pagina de produto antes do produto, mostra-se o menu e a busca.
quadno eu faço a edição pelo tema, ele não mostra mais as caracteristicas do produto como descrição e preço
pode me ajudar ?
February 5, 2021 at 7:46 am #1277868Hi osmegas,
If you try to use Advanced Layout Builder on the Product Pages, it will no longer use the default template so you’ll have to add this manually.
Instead of doing that, you can do the following:
1. You’ll need to use a child theme (skip this step if you have one), you can download and find instructions in this link: https://kriesi.at/documentation/enfold/child-theme/
2. Go to functions.php of your child theme and add this code at the bottom:function builder_set_debug() { return 'debug'; } add_action( 'avia_builder_mode', 'builder_set_debug' );3. Create a separate page for the menu and search, once you have made it, go to the bottom of the builder, you should see a Textarea where some shortcodes are generated, copy all these codes.
4. In functions.php again of the child theme, add this code:
You can try adding this code in your child theme’s functions.php file:function product_after_main_container() { if (is_product()) { echo do_shortcode("SHORTCODE"); } } add_action( 'ava_after_main_container', 'product_after_main_container', 12 );replace SHORTCODE with the shortcodes you copied in step 3.
Hope it helps.Best regards,
NikkoFebruary 5, 2021 at 5:20 pm #1278087I did the adjustment it worked, in parts, because it broke the code a bit in the related products, how can we adjust it?
February 5, 2021 at 5:21 pm #1278088February 6, 2021 at 2:40 pm #1278255Hi osmegas,
Can you try adding this CSS code in Enfold > General Styling > Quick CSS:
#top .related ul.products > li.product:nth-child(4n) { margin-right: 0; }Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
