Hi,
Do you need to add it in all products?
If that’s the case you can try adding the code below in your child theme’s functions.php
function add_button() {
global $post;
if((is_search() && get_post_type( $post->ID ) == 'product') || is_product()) {
echo do_shortcode('[x_button shape="square" size="large" float="none" href="/Dev/literature/" info="none" info_place="top" info_trigger="hover" style="color: #fff; background-color: #a3d55f;"]LITERATURE[/x_button]');
}
}
add_action( 'x_before_the_excerpt_end', 'add_button', 10 );
add_action( 'woocommerce_before_add_to_cart_form', 'add_button', 10 );
Then remove all button shortcode in your product description.
Hope that helps.