Home Forums WoodMart – Premium Template Adding HTML and icons under product block

This topic contains 7 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 4 days, 4 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #344640

    BVEdgie
    Customer

    Hello,

    Can you please tell me how and where I could add some HTML code in the part under product detail block?
    In red on the attached picture.

    Thanks
    Best regards

    Attachments:
    You must be logged in to view attached files.
    #344677

    Hello,

    You need to use an Extra content block on the product page: https://xtemos.com/docs/woodmart/product-page-options/#local_settings and set “After content”

    If you have any questions please feel free to contact us.

    Best Regards

    #344754

    BVEdgie
    Customer

    Hello Elise and thanks for replying.
    But is it possible to add it by default on each product?

    Kind regards

    #344762

    BVEdgie
    Customer

    Well, I did the test but the block appears under the product block (in orange in the attached pic).
    I need to get in the blue part, on all products. How can I do it?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #344969

    Hello,

    Please insert the credentials into the Private content below the message area. I will submit the request to our development department.

    Best Regeards

    #345105

    Hello,

    Please insert this code into the functions.php of the child theme:

    add_action(
    	'woocommerce_single_product_summary',
    	function() {
    		?>
    		<div class="">
    			<?php echo do_shortcode( '[html_block id="6915"]' ); ?>
    		</div>
    		<?php
    	},
    	100
    );

    Replace the ID of the HTML block for yours. https://gyazo.com/5e60f1ea9a13d1d8c0c0ff076119fb03

    Best Regards

    #345372

    BVEdgie
    Customer

    Thanks Elise, it’ what I needed!
    You can close this.

    #345519

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Adding HTML and icons under product block’ is closed to new replies.