Pullquote Edits

  • Author
    Posts
  • #150235

    fisheref
    Member

    Hi Taras,

    So I am using the pullquote solid color block style because I would like the text to appear with a colored background, and found this was the only block style which offered a colored background for just text. (Correct me if I am already wrong).

    My problem is that I would like to change the font size to match the rest of my pages body text (16px) and ideally, have the solid background adjust in size for this smaller text. I tried to write custom css to correct this issue on my own, but it is not working. I put it in a code validator and it came back with no errors, so I am not sure what I am doing wrong.

    The code I tried was,

    .page-id-12988 .wp-block-pullquote {
    font-size: 16px;
    }

    Although the page itself is not yet published, the code is, but the change in code doesn’t show in the page preview. What am I doing wrong and what would the correct code be? Or is there an easier way to achieve my desired look (text with solid color background)

    Thanks in advance and Happy Holidays!

    The blog I need help with is greenenergyohio.org.

    #150242

    tarasdashkevych
    Theme Author

    Hello,

    “The code I tried was…”
    – Could you please try this one:

    
    .page-id-12988 #page .wp-block-pullquote {
      font-size: 16px;
    }
    

    If it still does not work then please let me know when your page is published, so I can inspect the page and a custom CSS (please keep your custom CSS).

    Wishing you a Happy New Year!

    Thank you,
    Taras

    #150269

    fisheref
    Member

    Unfortunately, that didn’t work either.
    The page is published and can be found at https://greenenergyohio.org/12988-2/

    Thanks in advance!

    #150274

    tarasdashkevych
    Theme Author

    Thank you for the link.

    Please use this custom CSS to change the font size for pullquote:

    
    .wp-block-pullquote.is-style-solid-color blockquote p {
      font-size: 16px;
    }
    

    Thanks,
    Taras

The topic ‘Pullquote Edits’ is closed to new replies.