A Quick Custom CSS Hack for WordPress Posts

Say you create a post in WordPress and want to add a little something special to it that isn’t handled by a block or your stylesheet. It might be using a different custom font on the entire post. It might even be that you need to nudge something a little bit to the right because […]

The post A Quick Custom CSS Hack for WordPress Posts appeared first on Geoff Graham.


This content originally appeared on Geoff Graham and was authored by Geoff Graham

Say you create a post in WordPress and want to add a little something special to it that isn’t handled by a block or your stylesheet. It might be using a different custom font on the entire post. It might even be that you need to nudge something a little bit to the right because it isn’t lined up just right. Hey, some of the default blocks in WordPress need a little CSS massaging to look good in certain contexts.

Whatever the case, you need a quick one-off style on this certain post and don’t want to bother updating your stylesheet, using the Customizer, or installing a plugin for custom CSS.

Blocks to the rescue! Just drop an HTML block at the top of the post and write your styles inside <style> tags.

Drop an HTML block in there, add <style> tags, then CSS-away!

That’s all. Now those styles can do their thing.

There we go!

Is this a great solution? Heck no. It’s total hackery. But these sorts of situations come up every now and then and this is one possible way to go about it that might just do the trick.

The post A Quick Custom CSS Hack for WordPress Posts appeared first on Geoff Graham.


This content originally appeared on Geoff Graham and was authored by Geoff Graham


Print Share Comment Cite Upload Translate Updates
APA

Geoff Graham | Sciencx (2020-12-09T22:11:16+00:00) A Quick Custom CSS Hack for WordPress Posts. Retrieved from https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/

MLA
" » A Quick Custom CSS Hack for WordPress Posts." Geoff Graham | Sciencx - Wednesday December 9, 2020, https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/
HARVARD
Geoff Graham | Sciencx Wednesday December 9, 2020 » A Quick Custom CSS Hack for WordPress Posts., viewed ,<https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/>
VANCOUVER
Geoff Graham | Sciencx - » A Quick Custom CSS Hack for WordPress Posts. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/
CHICAGO
" » A Quick Custom CSS Hack for WordPress Posts." Geoff Graham | Sciencx - Accessed . https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/
IEEE
" » A Quick Custom CSS Hack for WordPress Posts." Geoff Graham | Sciencx [Online]. Available: https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/. [Accessed: ]
rf:citation
» A Quick Custom CSS Hack for WordPress Posts | Geoff Graham | Sciencx | https://www.scien.cx/2020/12/09/a-quick-custom-css-hack-for-wordpress-posts/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.