WordPress.org

Ready to get started?Download WordPress

Forums

Roots Plug
[resolved] rewrite the URI for the standard WordPress style.css (5 posts)

  1. helios_wp
    Member
    Posted 1 year ago #

    Hi zslabs,

    Firstly, thanks a lot for creating this plugin it makes it so much easier for getting a cleaner output.

    I'm having a few issues with the alienship theme and the roots plug. It is somehow breaking the theme and creates a few anomalies.

    This is the default theme without activating the plugin
    https://www.dropbox.com/s/pyebh5jeybbqcsq/Proper%20Headers.JPG
    https://www.dropbox.com/s/rorhfgvqre9h0d5/Proper%20Footers.JPG

    When I activate the plugin, the following issues are observed
    https://www.dropbox.com/s/m5bbkuf3eu7rxud/Incorrect%20Footer.JPG
    https://www.dropbox.com/s/1bqr0fjz2u9rq2p/Incorrect%20Header.JPG

    For the footer, when I resize the window after adding a background colour in the Chrome Inspector, the background snaps with some margin space

    I initially checked with the alienship author, and he suggested to check with the roots plugin author and if an extra fix can be done with the plugin to properly rewrite the URI for the standard WordPress style.css

    I have prepared a test wordpress server if you need to access. It could be easier that you see the demo and have a look!

  2. mindctrl
    Member
    Posted 1 year ago #

    Roots Plug also breaks the loading of style.css in the default Twenty Twelve theme, and most likely many/most/all themes since Twenty Twelve and Alien Ship do nothing special with regards to loading style.css. The style.css doesn't get loaded because the path Roots Plug creates results in a 404.

    I know the Roots theme does not make use of style.css and only has it as a placeholder so WP can make use of the theme. I'm guessing this is a carryover from that?

  3. Zach Schnackel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Sorry for the delay (WordPress doesn't send out notifications for new posts to plugin authors). The reason it is breaking Twenty Twelve is because Roots Plug includes .htaccess rewrites which forces assets to be contained in a specific location. This in itself is a pretty far-fetched idea since that would mean that themes would need to modify it's structure to work properly with the plugin.

    The asset location rewrites will be rewritten in an upcoming version (more or less removed) and this plugin will focus on code quality (contained within a class for easier portability) and compatibility, rather than obfuscation.

    The core functions work fine inside of Roots Theme - but not so good outside of it. I'll bridge that gap. Thanks!

  4. Zach Schnackel
    Member
    Plugin Author

    Posted 1 year ago #

    Just pushed out 1.0.1

  5. Zach Schnackel
    Member
    Plugin Author

    Posted 1 year ago #

    This should be resolved now

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic