Moderator
t-p
(@t-p)
Review this tutorial and see if it points in the right direction.
https://thrivewp.com/css-styling-wordpress-codeblock/
- This reply was modified 17 hours, 20 minutes ago by t-p.
thanks @t-p , I already came across this tutorial and the code doesn’t have any impact on my post. I’m using elemntor – would that perhaps make a difference?
In that case, I recommend getting in touch with Elementor’s support about this via https://elementor.com/support/ if you have any of their paid products or https://projectdmc.org/support/plugin/elementor/ if you do not.
Thanks @macmanx I’m not bulging the post with elementor – I am building it with Gutenberg in the Gutenberg editor.
Hm, I’m confused then, what was this referring to in your earlier reply?
I’m using elemntor – would that perhaps make a difference?
It’s a strange thing regarding the use of “elementor single post templates.” Basically you create a post template, and you place a widget in there called “post content”. You can’t access anything in this widget – it just drops what you build in Gutenberg in to it.
basically the post is built in Gutenberg but rendered through the post template. I’ve managed to select other “things” like headings, paragraphs and lists using css. Just not the code block.
Sorry… I made a mistake. I’m too embarrassed to say what it was. I’ll close this thread (but thank you for your replies).