Support » Plugin: Simple Staff List » Client Page CSS

  • Resolved srumery


    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brett Shumaker


    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.

    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?

    Plugin Author Brett Shumaker


    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

    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!

    Plugin Author Brett Shumaker


    No problem…glad I could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Client Page CSS’ is closed to new replies.