Hello,
I would have to have the price displayed on the left side of the add to cart button on the same line. I saw some people were able to do it but can’t figure out how to replicate it.
Is this possible ?
Thank you so much for your help!
Hey 805ITS,
Thank you for using Enfold.
Did you use the advance layout builder to create the product? Please add a custom css class attribute to the price tag. Example:
<strong class="custom-price">Price: $109.95 </strong>
And then add this script in the functions.php file:
function ava_custom_script_fix(){
?>
<script>
(function($){
function a() {
$('.custom-price').insertBefore('.div form.cart div.quantity');
}
a();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_fix');
Best regards,
Ismael