Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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 ?

    #1277868

    Hi 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,
    Nikko

    #1278087

    I did the adjustment it worked, in parts, because it broke the code a bit in the related products, how can we adjust it?

    #1278088
    #1278255

    Hi 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.