woocommerce / woocommerce-subscriptions-custom-price-string

Customize the price displayed to your customers for subscription products (or non-subscription product).
GNU General Public License v3.0
62 stars 11 forks source link

Style the price #6

Closed saltadmindev closed 3 years ago

saltadmindev commented 5 years ago

Hi, ive tried this plugin and its works perfectly but I cant target and style the price only from a string, example "From: £120 / for 6 months" input into your field in the product Woocommerce separates the products pricing string into 4 different classes for styling , when using custom pricing string it only uses the 1 "Price" class from Woocommerce classes. Will the ability to style the elements in a custom price string be added?

jrick1229 commented 3 years ago

@saltadmindev - you can use a <span> within the custom price string input in the product's settings. This span will not be visible in the custom price string input after updating the product, but will be visible in the HTML on the frontend product page. This will allow you to separately customize each <span> element with CSS.