WordPress.org

Forums

Flexible Posts Widget
[resolved] Make it reference a different size... (3 posts)

  1. nanrector
    Member
    Posted 1 year ago #

    I understand that the plug-in does not do any styling in and of itself. Is it however possible to have it reference a different style from my main theme that is not H4? The title is just way too large and I do not want to globally change my H4 size as that would of course mess up things elsewhere.

    Thank you!
    Nancy
    http://ourpeacefulplanet.com/wp/

    https://wordpress.org/plugins/flexible-posts-widget/

  2. czargyle
    Member
    Posted 1 year ago #

    Hi Nancy,

    I think you have two options:

    First, you could change the template markup. Find widget.php in the views folder, which is located inside the Flexible Posts Widget plugin folder. Copy it to a folder you make inside your theme folder called "flexible-posts-widget", modify it (should be easy to find the H4s and change them to something else), save it, and it will override the default template.

    The second option is to use the dpe-flexible-posts class to be more specific and select only things inside that class. So something like this might work:

    .dpe-flexible-posts h4 {
        font-size: 11px;
    }

    Although depending on the specificity of the selectors of the theme, you might have to go even more specific (.dpe-flexible-posts li a h4) or even use !important.

  3. DaveE
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for responding, czargyle!

    Nacncy, you would need to add some styles to your theme's stylesheet to accomplish this. The example czargyle offered would work perfectly.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexible Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags