• Resolved ehong33234

    (@ehong33234)


    We added some custom CSS in the theme settings and have since deleted the custom CSS however the site is still showing it. Is this something related to this plugin and cache? If so, what’s the best way to resolve this? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I would rather suspect page caching (which AO does not do) to be the reason, as AO will detect changes and create new optimized CSS in that case.

    But if you can share your site’s URL + some specifics (what was the custom CSS, what did it style) I can have a quick look.

    kind regards,
    frank

    Thread Starter ehong33234

    (@ehong33234)

    Thank you Frank! The URL is here: https://bit.ly/38oRRMH.

    The custom CSS code we added (and have since removed) is:

    .single-product span.woocommerce-Price-amount.amount {
    font-size: 32px !important;
    color: black !important;
    font-weight: 500;
    }
    .single-product .woocommerce div.product span.price {
    margin-top: -75px !important;
    margin-left: 270px !important;
    }
    .single-product .woocommerce div.product form.cart .variations td{
    display: inline-block !important;
    }

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I had a look and (although I _could_ be mistaking) I don’t see that CSS anymore and the prices at the bottom (related products) do not have that style applied?

    Thread Starter ehong33234

    (@ehong33234)

    Thanks for looking Frank. I did some digging too and we used a plugin called Code Snippet which allows you to add custom code into functions.php without editing core code. The problem is, even if you deactivate the custom code in code snippet, it gets saved in the database apparently so I am trying to figure it out that way. The plugin FAQ says there is a “complete uninstall” option in settings but the problem is, Settings option doesn’t existing! I am super admin too. Sorry for the trouble, great plugin you have btw.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I happen to ?? code snippets! ??

    Each snippet comes with a “delete” link (which is different from the activation toggle), doesn’t that work?

    (on network level settings are at wp-admin/network/admin.php?page=snippets, on site-level at wp-admin/admin.php?page=snippets )

    Thread Starter ehong33234

    (@ehong33234)

    Yes, it seems to be a nice plugin that does what it is intended to do. No knock on it here. Thanks for sharing the link for network level! I’m able to see the Settings option there but I don’t see a Uninstall or Deactivate or Purge option as indicated in the FAQ. I’ll keep digging.

    I tried everything else below with no dice.
    – Delete the snippets
    – Deactivate the plugin
    – Delete the plugin
    – Reinstall the plugin and try deleting code

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I see you posted in their support forum as well, Shea will know ??

    will close this as resolved now, but feel free to follow up.

    frank

    Thread Starter ehong33234

    (@ehong33234)

    Frank, just wanted to post an update. My developer is an idiot. After trying to resolve this for a good two hours, I combed through the product page itself (edit product) and found that the developer deleted the regular price! Low and behold, after entering the regular price for the product, the price and add to cart button reappeared. OMFG. My developer apologized profusely. Sorry for the trouble here!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no worries, we all make mistakes (you wouldn’t want to know of the stupid things I did in my IT-life, including AO ?? )

    enjoy the rush of seeing things working as expected!
    frank

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom CSS Cache’ is closed to new replies.