• Resolved BobsBURGS

    (@bobbysburgers)


    can we get an inline option for Use plugin’s stylesheet:

    the css is super small why cant we inline it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @bobbysburgers,

    the css is super small why cant we inline it?

    Indeed, WPP’s stylesheet is quite small because it barely adds any CSS to your site.

    If you want to “inline” it:

    1. Copy the contents of the wpp.css stylesheet (located at wordpress-popular-posts/public/css).
    2. Paste these CSS rules into your theme’s header.php, somewhere before the closing </head> tag. Make sure to wrap them with <style> tags.
    3. Finally, disable WPP’s stylesheet.

    … or you could just do step 3 and be done with it. As I previously said, WPP barely adds any CSS rules to your site.

    Thread Starter BobsBURGS

    (@bobbysburgers)

    agreed. This is what I do. But it would be pretty easy to write it into the plugin. I can help if you want.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks for the suggestion, I’ll keep it in mind.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Inline css option?’ is closed to new replies.