How to change font size, color of Code Block?
-
Hello
How do I change the font size, color, and background color of Code Block?
I want to keep the original Code Block format that comes with the OceanWP theme as it is. Instead, I want to create a new class for a custom code block.
For this, I added ‘code-cmd’ class in ‘Additional CSS class(es)’ of Code Block. Then I added the following to ‘Custom CSS/JS’ of theme.
.code-cmd { background-color: #000; color: #fff; font-size: 15px; }
But only background color changes. Text color and size won’t change, they remain the same.
So, how do I change the font size, color?
Thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to change font size, color of Code Block?’ is closed to new replies.