Site logo

Archived topic

Issue with pullquote in Gutenberg

3 replies · Started by Swadhin on January 25, 2019

Viewing posts 1–4 of 4

Hi there,

I am currently using the Gutenberg editor and I have selected a pullquote format for a block (search for "FYI" in the article to know the exact block) for one of my articles.

However, on the frontend, all that loads is a basic quote. Please help. :)

Hi there,

looks like Gutenberg only does half the styling hmmm - something to look into, in the meantime try this CSS:

.wp-block-pullquote {
    border-top: 2px solid;
    border-bottom: 2px solid;
}

.wp-block-pullquote blockquote {
    border: none;
    margin: 0;
}

Thank you. Is there anything you guys can do to fix this permanently (without the CSS) or we should let WP fix that in upcoming updates?

Thanks for the CSS. Using that for now. :)

best regards,
-Swadhin

Gutenberg has an optional additional CSS file. We don't/won't add it by default, as it will increase the size of your pages, but we'll likely add an option to add it in GP 2.3.

For now, you can do this:

add_action( 'after_setup_theme', function() {
    add_theme_support( 'wp-block-styles' );
} );

Adding PHP: https://docs.generatepress.com/article/adding-php/

This archived topic is closed to new replies.