Simple Staff List
[resolved] Client Page CSS (6 posts)

  1. srumery
    Posted 2 years ago #

    How can I permanently turn off the external CSS file support? I want to use this plugin for multisite and I want to make sure the css file is not created upon install of the plugin for each site. I see there is an option to turn it off...

    "Write to external CSS file? (Leave unchecked for WP Multisite.)"

    Since the value is on by default, it will create the file each time the plugin is enabled on a site within a WP network. There are several files that reference either creating the file, getting the option value, or saving the option value.

    What is the best way to permanently turn this off so the file is never created?


  2. brettshumaker
    Plugin Author

    Posted 2 years ago #

    In _inc/admin-install-uninstall.php comment out line 137. That will prevent it from creating the CSS file on Activation. Then, if you need to make sure it never gets turned on by a client or something, in _inc/admin-views.php comment out line 292 so the variable $ext_css_check is never set to "checked." Also comment out line 329. This will keep that checkbox from ever showing up on the page.

    I hadn't thought about the need for that box to be unchecked by default. I'll make that change in the next update. Thanks for bringing that up.

  3. srumery
    Posted 2 years ago #

    Thanks for the quick reply!

    I commented out the three lines of code you specified and the file is still being created upon activation.

    I'm digging a bit deeper to see if I can find a solution...

    If I find every location where file_put_contents(); is called and comment it out, that would work right?

  4. brettshumaker
    Plugin Author

    Posted 2 years ago #

    Sorry...I that would do the trick.

    Yeah, that will work. It should only be in _inc/admin-install-uninstall.php and _inc/admin-views.php. Oh, there's also one at the bottom of simple-staff-list.php

  5. srumery
    Posted 2 years ago #

    That worked. There were five locations in three files.

    (2) _inc/admin-install-uninstall.php
    (2) _inc/admin-views.php
    (1) simple-staff-list.php

    Thank you for your help in getting this resolved!

  6. brettshumaker
    Plugin Author

    Posted 2 years ago #

    No problem...glad I could help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Staff List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.