Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Can’t change font size in sidebar widget

  • I’m trying to make the font size of the WordPress Popular Posts widget smaller (I know this isn’t your guys’ plugin, but maybe you can help). I tried adding the CSS in additional CSS in customize but it’s not working for some reason. Here’s the code I’m using, which SHOULD work:

    .wpp-post-title {
    font-size: 15px !important;

    I also tried:

    .wpp-tiles li {
    font-size: 15px !important;

    Any idea what could be wrong? I’ve spent hours trying to figure it out.

  • Hi there,

    the font size has been set on the a tag.


    ul.wpp-tiles li .wpp-post-data .wpp-post-title {
        font-size: 15px;

    Try adding that to the top of your Customiser CSS and then clear any caches on the site.

  • I added the code and cleared cache, doesn’t seem to work. It also doesn’t show the text sizing down in the customizer preview.

  • Aah. the Plugin is using Javascript to output its HTML into the shadow dom. So I dont think its possible.

    You could try this but its unlikely to work
    edit the Sidebar and immediately after that Popular posts
    Add the a HTML Block and add the CSS there inside some style tags eg..

    ul.wpp-tiles li .wpp-post-data .wpp-post-title {
    font-size: 15px;

    This will add the CSS immediately after the HTML has been added.

  • Thanks David, do you mean like this?

    Doesn’t seem to work

  • Yeah, but I kinda knew it wouldn’t work due to the way that plugin is injecting its HTML.
    You would need to check with the plugin developer as it needs to be changed in their code. Or find a different plugin

  • Gotcha, thanks for the help

  • You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.