protohominid
Forum Replies Created
-
Forum: Plugins
In reply to: [Structured Content (JSON-LD) #wpsc] Option to disable plugin’s stylesAdding a custom CSS class to the built-in WP field doesn’t disable the plugin’s stylesheet for me either, though.
Forum: Plugins
In reply to: [LuckyWP Table of Contents] PHP 8 compatibilityAnswering my own question here…
The issue was this function that I had added to my theme’s functions.php file:
add_filter( 'lwptoc_enqueue_style', false );
I was trying to prevent the plugin’s default stylesheet from loading. Does anyone know the proper way to do that without angering the php8 gods?
Forum: Plugins
In reply to: [Web Stories] Deregister image sizes?Doh! I forgot to try adding the priority argument. That seems to have worked. Thanks Pascal!
Forum: Plugins
In reply to: [Web Stories] Deregister image sizes?I’m not asking for the plugin to only add the sizes when needed; I’m asking if I can disable the creation of new sizes by the plugin going forward.
WordPress has the “remove_image_size()” function, but I can’t get it to work on the Web Stories registered sizes. I tried it with the ‘init’ and ‘after_setup_theme’ action hooks.
Why doesn’t the remove_image_size() function work in this case?
This is my code:
add_action( 'init', 'nm_remove_extra_images' ); function nm_remove_extra_images() { remove_image_size( 'web-stories-poster-portrait' ); remove_image_size( 'web-stories-poster-landscape' ); remove_image_size( 'web-stories-poster-square' ); remove_image_size( 'web-stories-publisher-logo' ); remove_image_size( 'web-stories-thumbnail' ); }
- This reply was modified 3 years, 6 months ago by protohominid.
Forum: Plugins
In reply to: [LuckyWP Table of Contents] Dequeue CSS?Answering my own question – I found another thread that had the answer that I modified to apply to the entire site:
add_filter( 'lwptoc_enqueue_style', false );
Forum: Plugins
In reply to: [Easy Table of Contents] Auto insertWe are having the same problem – the plugin inserts the TOC right next to the first heading, which is expected, but we have pages where the first heading is within a styled wrapper. In that case, the TOC gets inserted within the styled wrapper, which isn’t good.
Fantastic, thanks again!
Yes, that helps, but it would still be nice to disable the plugin’s styles, since it is more http requests to the server that I don’t need. Just a suggestion.
Thanks!
That’s what I needed, many thanks.
BTW, when I tried to do this via Handlebars output using your examples, it didn’t work. The PHP output method worked fine.
Forum: Plugins
In reply to: [Redirection] Redirect home page only if no query stringYeah, I looked through that page but I don’t see any example of a negative condition for query strings. Can you point me in the right direction for what the regex rule would be for this?
+1
Not a huge deal but confusing for my clients.
Forum: Plugins
In reply to: [WooCommerce] Exclude roles from WC Points & RewardsSorry but the points and rewards plugin doesn’t have a forum, and your support person directed me to post the question here. I’m open to other suggestions. Thanks.
Forum: Plugins
In reply to: [WooCommerce] Product’s backorder settings getting changed@dabodude – We haven’t determined what is/was causing it. I still suspect it is the DEAR inventory management system, because nothing else has write access. However, product titles disappearing hasn’t happened again since 11/29, so fingers crossed that whatever was causing it got fixed. Good luck, I hope Actuality Extensions is more responsive than DEAR. ??
- This reply was modified 5 years, 11 months ago by protohominid.
Forum: Plugins
In reply to: [WooCommerce] Product’s backorder settings getting changedIt’s been happening for a few months and Woocommerce has been up-to-date the entire time.
I don’t know what you mean by ‘request body that you are using’ – are you referring to the API call that DEAR is using? I don’t have access to that, unfortunately.
Forum: Plugins
In reply to: [WooCommerce] Product Titles disappering+1
Our WC shop is also experiencing this problem. At first I thought it might be a plugin that is synchronizing with the site, like the Facebook for WooCommerce plugin, but I tried disabling it and the problem happened again.
Recreating all of these products from scratch is a last resort and would be a lot of work. What would corrupt the database entries for a product title like that? Any ideas on how to troubleshoot would be welcome.