Hi
In a previous thread you gave me the following code to format the product purchase button for subscription product only:
#top.single-product .price span.woocommerce-Price-amount,
#top.single-product .price span.woocommerce-Price-currencySymbol {
font-size: 20px;
color: white;
}
#top.single-product #subscription_product_id > .av-woo-purchase-button.avia-builder-el-last {
text-align: center;
}
This worked fine but since last them update the div content no longer centers. Please advise – can not find anything in the changelog that wouldve affected it.?
Many thanks
Hey Art_Discovery,
I’m not sure exactly what you are looking to change on the page you linked to, could you try to explain your intentions a bit further please? If you are a screenshot highlighting what you would like to achieve, then please share that with us.
Best regards,
Rikard
Hi -Please see screenshot in private content.
Thanks
Hey,
Thanks for contacting us!
Please add following code to Quick CSS field in Enfold theme options > General Styling tab
.single-product .av-woo-purchase-button {
text-align: center;
}
Regards,
Yigit
Hi I’ve managed to get this to work by removing:
.avia-builder-el-last
from the code, however does this mean other products will be affected?
Hi!
Please use the code as following instead
.single-product #subscription_product_id .av-woo-purchase-button {
text-align: center;
}
Edit: No, only buttons inside column section with “subscription_product_id” ID will be affected
Regards,
Yigit
Great – many thanks Yigit
Hi,
If you would like to limit the code to that product only, you can use the code as following
.single-product.postid-3491 #subscription_product_id .av-woo-purchase-button {
text-align: center;
}
You are welcome! Let us know if you have any other questions and enjoy the rest of your day :)
Best regards,
Yigit