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.
That’s all. Now those styles can do their thing.
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
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.