- This topic has 10 replies, 4 voices, and was last updated 4 months, 1 week ago by
Elvin.
-
AuthorPosts
-
October 25, 2020 at 8:07 am #1503574
James
I’m having an issue getting the colours of my pullquotes to display in my posts. In the Gutenburg editor, the colour is there, but when I either preview or post, the horizontal colour bars are non-existent. I would also like to get rid of left vertical bar, if possible, for it *does* show in the preview/posts.
My site: http://www.MiramichiReader.caThanks!
James M. Fisher
www.MiramichiReader.caOctober 25, 2020 at 9:08 am #1503640David
StaffCustomer SupportHi there,
can you link me to a post where i can see the issue?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 25, 2020 at 9:12 am #1503650James
Sure: quote issue.
In the editor, I have red horizontal bars top and bottom (and that persistent grey vertical bar).James M. Fisher
www.MiramichiReader.caOctober 25, 2020 at 9:22 am #1503662David
StaffCustomer SupportTry this CSS:
.wp-block-pullquote { border-top: 2px solid; border-bottom: 2px solid; } .wp-block-pullquote blockquote { border-left: 0; }
Core blocks keep changing their markup and neglect to provide the front end CSS – which is a pain. But we’ll take a look at our theme CSS so we can cover this in the future.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 25, 2020 at 9:35 am #1503681James
Nice! Thanks again, David.
James M. Fisher
www.MiramichiReader.caOctober 25, 2020 at 9:36 am #1503684David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 25, 2020 at 12:01 pm #1503818Tom
Lead DeveloperLead DeveloperJust a heads up that WordPress has an optional stylesheet that handles this kind of stuff I believe.
GP doesn’t add it by default, but you should be able to add this PHP:
add_theme_support( 'wp-block-styles' );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 25, 2020 at 1:20 pm #1503876James
Where should I add this code, Tom?
Thanks,
James M. Fisher
www.MiramichiReader.caOctober 25, 2020 at 1:21 pm #1503877Elvin
StaffCustomer SupportHi James,
It’s a PHP snippet.
Here’s how to add PHP codes – https://docs.generatepress.com/article/adding-php/
A wise man once said:
"Have you cleared your cache?"October 25, 2020 at 1:35 pm #1503886James
Done. I would still like to get rid of that vertical grey line. π
EDIT: nevermind. Clearing the cache got rid of it. Wise man!James M. Fisher
www.MiramichiReader.caOctober 25, 2020 at 3:34 pm #1503941Elvin
StaffCustomer SupportEDIT: nevermind. Clearing the cache got rid of it. Wise man!
Nice one.
No problem. π
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.