Change size of subscription form

  • Author
    Posts
  • #164285
    dias18100
    Member

    Hi,

    Is it possible to change the size of the button of subscription form when we switch in Mobile ?
    The word in the button is not fully displayed in mobile. I juste want to change the size for this (not for tablet ou computer)

    thank you

    The blog I need help with is: (visible only to logged in users)

    #164288
    tarasdashkevych
    Theme Author

    Hello,

    By default this subscription block does not provide such functionality but you can use a custom CSS to change styles of the button in mobile views:

    
    /* chanage subscription button size in mobile views */
    @media (max-width: 500px) {
      .wp-block-jetpack-subscriptions .wp-block-button__link {
        padding: 0.75em 1em !important;
        font-size: 0.76rem;
      }
    }
    

    Please let me know if you have any additional questions.

    Kind regards,
    Taras

    #164290
    dias18100
    Member
    Original poster

    Thanks a lot, it’s working

    Do you have a custom CSS to change the size of the text in the button ?
    Juste for Mobile version again

    Thank you

    #164292
    tarasdashkevych
    Theme Author

    You are very welcome!

    “Do you have a custom CSS to change the size of the text in the button ?”
    – In the custom CSS above, please change 0.76rem to, for example, 0.6rem.

    Let me know if you have additional questions.

    Kind regards,
    Taras

    #164295
    dias18100
    Member
    Original poster

    Thank you, perfect !!

    #164300
    tarasdashkevych
    Theme Author

    You are welcome. I am glad I was able to help :)

    Kind regards,
    Taras

  • The topic ‘Change size of subscription form’ is closed to new replies.