• Resolved swy2017

    (@swy2017)


    Hi, the text on the payment button won’t change to bold, the css code I am using works with all my other buttons. Please could you help me to change the text to bold or weight 900. This is the CSS custom code I am using:

    .mybtn2 {
    font-weight: bold;
    }

    Have also tried:

    .mybtn2 {
    font-weight: 900;
    }

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, can you share your URL with the payment button.

    Thank you

    Thread Starter swy2017

    (@swy2017)

    Hi, see: simonwrightyoga.com/massage-payment-page/

    Plugin Support mbrsolution

    (@mbrsolution)

    Just one question, did you read the following documentation?

    Thank you

    Thread Starter swy2017

    (@swy2017)

    Yes

    Plugin Support mbrsolution

    (@mbrsolution)

    Just for testing purposes can you test one of WordPress default themes like Twenty Seventeen? I am just trying to see if it is your theme causing this issue.

    Regards

    Thread Starter swy2017

    (@swy2017)

    If it was the theme, wouldn’t I have the same issue with all my other buttons? The only buttons that are not displaying the correct font weight is the payment button. They are all pulling from the same css code that is added to the style sheet. It’s pulling button style, format, padding etc

    Thanks

    Plugin Support mbrsolution

    (@mbrsolution)

    Can you share the URL of one of the buttons that your custom CSS works.

    Thank you

    Thread Starter swy2017

    (@swy2017)

    You can view the CSS working with buttons created on the home page ‘book & view’ & ‘pay for your…’

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I found out why your custom CSS code is not working. The buttons in your site that are bold are using the following HTML tag <p>. And the buttons that your custom CSS code is not working is using the <span> HTML tag.

    Let me know if the above helps you.

    Regards

    Plugin Author mra13

    (@mra13)

    This looks like a theme issue. Your theme’s CSS isn’t letting you do that. If you use the following CSS, you will see that the font-size will change fine (meaning hte CSS is definitely targeting that element).

    .mybtn2 {
    font-size: 24px;
    }

    Your current theme has it’s own CSS that is preventing the “bold” from applying to the button text. If you switch to a default wordpress theme (just for testing), you will get a clear picture of what your custom CSS is doing (without any interference from the theme).

    Thread Starter swy2017

    (@swy2017)

    Any suggestion on how to get round this? Have tried adding the CSS script on the pages with payment buttons on without any luck. Am assuming the CSS code on the link you provided will produce the same result.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, try the following code. Assuming that span is the HTML tag that wraps the text, as per my comment above.

    span.mybtn2 {
    font-size: 24px;
    }

    Or

    #span.mybtn2 {
    font-size: 24px;
    }

    If the above does not work, your best option is to speak to the theme developers about this issue.

    Kind regards

    • This reply was modified 7 years, 11 months ago by mbrsolution.
    Thread Starter swy2017

    (@swy2017)

    neither code worked but took part of your suggestion and upped the font size in my existing CSS code. If I find the cause & fix, i’ll let you know.

    Thanks for looking having a try.

    Kind regards,

    Simon

    Thread Starter swy2017

    (@swy2017)

    Just a follow on to the customisation of the payment button, is there any way of centring the ‘accept terms & conditions’? When viewed on desktop it is off centre but on mobile it centres perfectly.

    Thanks!

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, can you share the URL with the button.

    Thank you

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Button Styling CSS Query’ is closed to new replies.