• Resolved bestofbonus

    (@bestofbonus)


    Hello,

    I have a peculiar issue.
    When I browse the category pages of my website after entering via any site (except a “/category”) link everything works fine.
    However, when I enter my site directly via “www.example.com/category/category-name” the layout (a banner grid on top) is broken.

    I disabled AssetCleanup and the problem disappeared so it must be some scripts that are deactivated that break the layout.

    The problem is I can’t test which script creates the problem because I can’t edit my “/category” pages since they’re not in the “Pages” section of my backend.
    I tried deactivating AssetCleanup on my homepage but that didn’t help.

    Can anybody help on how I can touch what AssetCleanup is doing on my “/category” pages?

    Thank you and Cheers,
    Stan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bestofbonus

    (@bestofbonus)

    Found the problem.
    I had one JS and one CSS file disabled site-wide which broke the layout.
    No issue with the plugin.

    Plugin Author Gabe Livan

    (@gabelivan)

    @bestofbonus many thanks for letting us know that it’s not an issue with the plugin and my apologies for not getting back to you sooner! Mistakes like this one do happen and I wish the plugin had an advanced way to detect when the wrong CSS is unloaded. Unfortunately, it’s not that easy as each website is different and the admin usually knows what he needs to load on a page or not.

    PS: There’s a way to load the pages with all the CSS/JS loaded back when necessary for debugging purposes. For instance, if you append /?wpacu_no_js_unload to the page, it will load back all the JS files that were unloaded. This way, you will know if the culprit is one of the unloaded rules you’ve added. For the CSS, it’s /?wpacu_no_css_unload and it will load back all the CSS. If there’s already a query string added to the URL with a question mark, then you have to append it like this: &wpacu_no_css_unload

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“/category” pages layout broken by AssetCleanup’ is closed to new replies.