Support » Plugin: No Page Comment » Stylesheet conflict breaks WordPress Dashboard

  • Resolved mikeotgaar

    (@mikeotgaar)


    @seth
    The new stylesheet included with 1.0.1 messes up the WordPress admin dashboard. (prevents Dashboard widgets showing the information properly)

    CSS classes used are repeats of the admin core sylesheet classes .insider and .inner

    Some changes to stylesheet and settings file fixes this issue

    Changes made: Gave classes new unique names
    Stylesheet file – (no-page-comment.css):
    .inside changed to .npcinside
    .inner changed to .npcinner

    Settings file – (no-page-comment-settings.php)
    class=”inside” changed to class=”npcinside”
    class=”inner” changed to class=”npcinner”

    It may also be a good idea to give the .buttons class a unique name as well.
    Hope this info helps 🙂

    http://wordpress.org/plugins/no-page-comment/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I uploaded the 2 modified files to Github if anyone wants to use them (Not used to using Github so setup as a new repository instead of a fork)

    https://github.com/mikeotgaar/no-page-comment-plugin-mods

    Plugin Author Seth Alling

    (@sethta)

    Thanks for the catch. I thought I had set up the CSS file to only fire on the settings page, but I guess there was an issue with that. I’ll revisit it and get it fixed.

    I actually am trying to keep the same class names as what are used in Core so it will gracefully upgrade/degrade with other versions of WP.

    I’ll definitely fix it though by adding another class in the wrapper of the settings and making sure the CSS won’t run on any other pages and I’ll let you know when that’s complete.

    Thanks again for catching the issue.

    No problemo!
    I’ve also been having a hassle with conditional filters and functions recently… Probably missing something in the latest WP versions…

    Will check the next update 🙂

    Plugin Author Seth Alling

    (@sethta)

    All set. It will probably be about 15 minutes before the WP Update system recognizes the change, but you can download the zip from here.

    My issue wasn’t an issue with WP core not working; it was with me checking off something from my checklist when I definitely hadn’t completed it. 🙂

    I updated the script action to only pull in the script on the settings page, and then I also added a class on the plugin page wrapper as a failsafe.

    That works…
    EXCELLENT SUPPORT. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stylesheet conflict breaks WordPress Dashboard’ is closed to new replies.