pracko
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Install ErrorSame here. Just now. New install on Twenty Twenty theme, WP 5.5. All plugins have been deactivated. Yet this major WooCommerce fatal error is still occurring. What’s going on team!?
- This reply was modified 4 years, 3 months ago by pracko. Reason: add WP version
Forum: Plugins
In reply to: [GenerateBlocks] Load GB CSS LastI did, but any lower than 8 put the Simple CSS before the theme’s (Neve) CSS. That’s why I switched to another custom CSS plugin — one that outputs an external file that I could then reorder basked on the key.
Forum: Plugins
In reply to: [GenerateBlocks] Load GB CSS LastThanks Tom! Yeah, I am outputting the GB CSS as an external file so that I can control its order. But for whatever reason, I just can’t seem to get GB CSS to come dead last after the inline Simple CSS.
Forum: Plugins
In reply to: [GenerateBlocks] Load GB CSS LastThere’s no caching set up.
After trying several ways to do it, I ended up going with another CSS plugin that outputs the CSS as an external stylesheet that I can put into the proper order using the above Action.
Forum: Plugins
In reply to: [GenerateBlocks] Load GB CSS LastFWIW, I was able to use the following to put everything in the proper order except for Simple CSS because SCSS prints the CSS output inline and I can’t re-order it using this method:
function swp_reorderstylesheets() { global $wp_styles; $keys=[ 'theme-css' 'generateblocks', ]; $wp_styles->queue = array_values($wp_styles->queue); foreach($keys as $currentKey) { $keyToSplice = array_search($currentKey,$wp_styles->queue); if ($keyToSplice!==false && !is_null($keyToSplice)) { $elementToMove = array_splice($wp_styles->queue,$keyToSplice,1); $wp_styles->queue[] = $elementToMove[0]; } } } add_action( 'wp_print_styles', 'swp_reorderstylesheets',10);
Forum: Plugins
In reply to: [GenerateBlocks] Load GB CSS LastHi Tom, that works to make Simple CSS load earlier, but GenerateBlocks CSS still comes before and I need the GB CSS to come last. Is there an action I can use for GB to do that?
Forum: Themes and Templates
In reply to: [Neve] Enable Shortcodes in Footer?OK, great thank you for that advice! I will try that.
Forum: Themes and Templates
In reply to: [Neve] Enable Shortcodes in Footer?Is there no active support for this theme? Hmmm, seemed like Neve was a theme worth checking out, maybe not.
Forum: Plugins
In reply to: [GenerateBlocks] Request: Container Max HeightHey Tom, no it wasn’t padding. I played around with it a bit and stuck with the min-height option on mobile. Works just as well and seems best option so as to avoid the inner container issue you mentioned. Cheers.
Forum: Plugins
In reply to: [GenerateBlocks] Request: Container Max HeightWith a (max) height set on both containers, the inner container’s height would need to be set less than the outer container’s height.
Reason I ask is because in a section with a background image (outer container) on a page I’m working on, the outer container (“section”) takes up way too much real estate in the viewport on mobile devices, so I want to set a height/max-height on that to lessen the amount of space it takes up. The inner container is centered vertically and there’s just too much space above and below it.
Forum: Plugins
In reply to: [Better Font Awesome] Plugin abandoned?That would be awesome, Mickey!
Angelo,
No I am NOT using a shortcode to display events in my main blog feed, I am using the following in functions.php:
/** Add Event CPT to Blog Feed **/ add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( ( is_home() && $query->is_main_query() ) || is_feed() ) $query->set( 'post_type', array( 'post', 'event' ) ); return $query; }
Thus, I need a filter to exclude events that have a specific event category from appearing in the blog feed.
Example: When an event has passed, I change the event category from ‘active’ to ‘expired’. I need a filter so that all events assigned the category name ‘expired’ will not show in the blog feed anymore.
Thanks
Yes as in all events with the category name “foo” for example.
Forum: Plugins
In reply to: [Waiting: One-click countdowns] Is this plugin discontinued?Is the new version ready, or what will it be called?
@svovaf No, the Post Snippet plugin’s notice is showing over the top of the page that you would see immediately after WordPress core is updated to a major release. It would seem that the plugin’s notification shouldn’t be showing on that page at all, only on the plugin’s own pages.