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

    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

    #1345148

    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

    #1351379

    Hi -Please see screenshot in private content.
    Thanks

    #1351383

    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

    #1351384

    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?

    #1351390

    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

    • This reply was modified 2 years, 6 months ago by Yigit.
    #1351415

    Great – many thanks Yigit

    #1351421

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘woo Product purchase button in avia’ is closed to new replies.