Title: Invalid HTML: Inline Style
Last modified: July 31, 2020

---

# Invalid HTML: Inline Style

 *  Resolved [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/)
 * Please can you place all styling in the `<head>` and away from the visible gallery
   in the HTML output?
 * `<style>#jtg-137 .modula-item .jtg-social a, .lightbox-socials.jtg-social a{ 
   color: #ffffff }# ...</style>`
 * I can place this into the Child theme’s CSS if needed.
 * I am receiving HTML validation errors when the page is checked.
 * Thanks,
 * Noah
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-html-inline-style%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/#post-13195684)
 * In the code, I’ve edited the `$css` variable to output an empty string. I know
   this is a temporary fix. Can you offer something that’s more permanent?
 *  [visi19](https://wordpress.org/support/users/visi19/)
 * (@visi19)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/#post-13202821)
 * Hello [@designextreme](https://wordpress.org/support/users/designextreme/) ,
 * Thank you for reaching out to us!
 * You can enter directly in Appearance -> Customize -> Additional css, without 
   the html <style> & </style> tags.
 * Please let me know if you have questions.
 * All the best,
    Marian
 *  Thread Starter [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/#post-13204397)
 * [@visi19](https://wordpress.org/support/users/visi19/) Not really, I just want
   all inline styling to go away. Adding my own in addition to it isn’t a solution.
 *  [visi19](https://wordpress.org/support/users/visi19/)
 * (@visi19)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/#post-13207770)
 * Hello [@designextreme](https://wordpress.org/support/users/designextreme/) ,
 * At the moment it is not possible but we know about this problem and we will try
   to solve it in the near future.
 * Please let me know if you have questions.
 * All the best,
    Marian

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Invalid HTML: Inline Style’ is closed to new replies.

 * ![](https://ps.w.org/modula-best-grid-gallery/assets/icon-256x256.png?rev=3095828)
 * [Modula Image Gallery - Photo Grid & Video Gallery](https://wordpress.org/plugins/modula-best-grid-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modula-best-grid-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modula-best-grid-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/modula-best-grid-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modula-best-grid-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modula-best-grid-gallery/reviews/)

## Tags

 * [inline style](https://wordpress.org/support/topic-tag/inline-style/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)
 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [visi19](https://wordpress.org/support/users/visi19/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/invalid-html-inline-style/#post-13207770)
 * Status: resolved