Remove inline style from input element in subscribe form

  • Author
    Posts
  • #127904

    csactivism
    Member

    Since an inline element style is applied separately to the input element which you could find in the subscribe form, I couldn’t able to override it with CSS.

    An ID of the element
    id="subscribe-field"

    Kindly remove those style attributes so that it would look nice. These inline CSS makes it look weird.

    The blog I need help with is myjourneyandbeyond158411875.wordpress.com.

    #128023

    mmcalister
    Theme Author

    Hi there,

    We don’t apply any inline styles to our themes, but WP.com may be outputting something. It looks like I can’t access your site. Feel free to send me a link when you have one live and I’ll take a look.

    #128030

    csactivism
    Member

    I am sorry. I have mapped my site to the custom domain recently. Here is the link to my site.

    https://csaspirant.net/

    You can find the subscribe input box at the end of the page.

    Thanks in advance.

    #128207

    mmcalister
    Theme Author

    Hi there,

    I don’t see any inline style applied to that submit button. You can change the background color with the following CSS:

    aside.widget_blog_subscription #subscribe-blog input[type=submit] { background: #5ab6bb; }

    Feel free to change the hex color to whatever suits your site.

    #128244

    csactivism
    Member

    Hello,

    It seems you have misunderstood my concern. I am not talking about the submit button. I am asking about the inline style applied to the input element of type text. You can search by its id
    id="subscribe-field"

    You can see, the following inline styles are applied, Which are to be removed.

    width: 95%;
    padding: 1px 2px;

    And whenever I try to replace the code with the below CSS, it again overrides by default element style.

    You have given solution for the input element of type submit. Submit button doesn’t have any inline styles applied and it looks perfect.

    #128285

    mmcalister
    Theme Author

    Looks like you’ve removed your site for now. Feel free to update us if you decide to bring it back.

    #128286

    csactivism
    Member

    What? Have I removed my site? Here is my site goes.

    https://csaspirant.net/

    And the topic is still not resolved. Please check properly. If not, feel free to ask questions.

    #128307

    mmcalister
    Theme Author

    Hi there,

    I’ve just released an update to the theme and the fix for the input styles should go through shortly!

    #129478

    csactivism
    Member

    Thank you. It’s been resolved.

The topic ‘Remove inline style from input element in subscribe form’ is closed to new replies.