Forums

[Plugin: Theme Tweaker] how exactly does this work? (5 posts)

  1. Ovidiu
    Member
    Posted 2 years ago #

    does it actually replace the style.css file?
    what happens if its a non default theme that has other stylesheets too?

    the reason I am asking is that I'd love to use this plugin on a wpmu installation and if it actually changes the stylesheets itsself, that would be bad as a lot of people share the themes so a change would affect everyone using the same theme

    http://wordpress.org/extend/plugins/theme-tweaker/

  2. manojtd
    Member
    Posted 2 years ago #

    Theme Tweaker inserts text css blocks in the pages that your server dishes out. e.g.

    <!-- Theme Tweaker (start) -->
    <style type="text/css">
    body {background-color:#E8E1C4;color:#1D1B29;}
    ...
    </style>
    <!-- Theme Tweaker (end) -->

    It does not overwrite your style.css, which indeed it cannot, unless you have your file protection bits as 777.

    Theme Tweaker only reads your main style.css file pointed to by:

    $stylefile = get_theme_root() . '/' . $mThemeName . '/style.css' ;

    It doesn't try to follow the @Import directives, so it may not work well for WP-MU.

    I don't have WP-MU and haven't done any test on it. The only feedback I got from one user is that it did not work for him for a particular theme, although he says it worked for other themes.

  3. Ovidiu
    Member
    Posted 2 years ago #

    my file permissions are 775, and owned by apache user, but I can change this...
    But is the plugin made to overwrite the style.css if the right file permissions are set?
    so you think there shouldn't be anything unsafe here?

  4. manojtd
    Member
    Posted 2 years ago #

    Yes, the plugin is safe. It never tries to write anything on your server. And, if/when you deactivate it, everything reverts back to your original styles/colors.

  5. Ovidiu
    Member
    Posted 2 years ago #

    btw. there was a very similar plugin years ago, except for the ajax effects, but it would also show the names of the elements where those colors were applied and it also would allow (if I remember right) to change background images.

    Have a look here, I think this is the last mod: http://pastebin.com/pastebin.php?dl=f4ce9cdb9

    if you could incorporate all those features into your plugin, I think all wpmu users woudl be extremely grateful :-)

Topic Closed

This topic has been closed to new replies.

About this Topic