Forum Replies Created
-
AuthorPosts
-
Cinch
ParticipantHi ali7e,
I’m not quite an expert on this, but since you’re editing the widget I don’t think you can re-write the query. Perhaps try adding it into a widget that renders php. I use PHP Code Widget: http://wordpress.org/plugins/php-code-widget/
Good luck,
~ BryanCinch
ParticipantHi Rob,
I’m sorted yes, in that I’ve decided to use something like W3 Total Cache to merge and minify the plugin stylesheets. Otherwise I’m very close to figuring out/fixing the differences between versions.
Thanks,
~ BryanCinch
ParticipantYes it appears so Barry. I must have been doing it wrong before, but it somehow still worked.
Thanks again,
~ BryanCinch
ParticipantHere is a fix for anyone needing to know how to query for just todays events. Inspired by this from Jonah: https://theeventscalendar.com/support/forums/topic/version-three-breaks-custom-event-display-using-wp_query/#post-54168
https://gist.github.com/spigotdesign/5980046
Thanks guys!
Cinch
ParticipantHi Barry,
Yes, that was the direction I needed. Here’s the updated code that works: https://gist.github.com/spigotdesign/5979056
Thanks a ton, mark this one fixed!
Cinch
ParticipantNope… sorry to hijack your forum this way… just wondering 🙂
Cinch
ParticipantTesting out a Gist embed:
Cinch
ParticipantHi Barry,
Here’s the code I’m using, which yes, passes taxonomy params: https://gist.github.com/spigotdesign/5979056
This worked as expected in 2.0.11
Cinch
ParticipantThanks Barry. I was hoping to not allow post edit access, but it’s good to know the required cap.
Cinch
ParticipantI agree that using wp_enqueue_style is correct, but separating them into 7 separate http requests feels excessive. Thanks for all the help, I appreciate it.
Cinch
ParticipantI wouldn’t be enqueuing through the theme… I’d be adding it to my main css file. The main reason is to not load 7 files, but one. One that is minified and being loaded anyway.
Cinch
ParticipantYes, but not why you think dequeueing is a potentially bad idea…
Cinch
ParticipantWhere it’s loaded isn’t currently affecting this project, but I can see why you’d want it to load later. And then automatically NOT load the pro styles.
Any thoughts on my previous dequeue question? Thanks, and my apologies if I’m bugging you too much.
Cinch
ParticipantAlso, it appears that the plugin you mentioned is not necessary… Adding tribe-events.css to the tribe-events directory within the theme replaces what would normally be loaded from the-events-calendar/resources/…
~ Bryan
Cinch
ParticipantThanks for the dequeue info Andy. Can you explain why dequeueing wouldn’t be a good idea?
I didn’t plan on enqueuing through the theme… Just putting everything within the theme css.
I’m interested in best practices… if there’s a better way to minimize the number of stylesheets loaded, I’m happy to do it. Do you prefer to concatenate through something like W3 Total Cache?
-
AuthorPosts
