Forum Replies Created
-
AuthorPosts
-
Cinch
ParticipantAndy,
Thanks for the override plugin idea. It’s doing it’s job and allowing me to override the plugin styles.
I’m looking forward to the update, as TEC currently loads 7!!! stylesheets, including the override. I’d much prefer to turn them all off and load them myself through the theme for minify/concatenation purposes.
Can you provide a full list of the correct dequeue ID’s? This: wp_dequeue_style( ‘full-calendar-style-css’ ); for example, is not working.
Thanks again,
~ BryanCinch
ParticipantJonah, do the updated override documentation include the events.css file? I can’t seem to override the css…
Attempting to create a new tribe-events-theme.css file also fails to override the system css…
Cinch
ParticipantThat was actually just a bit of a test… the $post_id there didn’t make a difference and I’ve removed it. Still testing…
Cinch
ParticipantI’d really like to transition now to 3.0 as we’re still in development. Can you think of any reason why normal WP conditionals might simply stop working when using the new version?
This conditional also isn’t firing correctly:
if ( get_post_type($post_id) == 'tribe_events' ) { ... }
Cinch
ParticipantI had a backup and was able to downgrade to v2.0.11 – which has solved all my conditional problems…
I’ll have to stay at the older version until I can locate the issue.
If I figure it out I’ll post back here.
Thanks,
~ BryanCinch
ParticipantI’m using it within footer.php
I’m having a similar conditional issue here: https://theeventscalendar.com/support/forums/topic/cpt-conditionals-for-filters/
Perhaps I’ve got something more systemic going on.
Is it possible to downgrade back to v 2.xx? I don’t see it in the downloads.
Cinch
ParticipantSorry… that code snip didn’t work… here it is again:
if ( tribe_is_month() ) {
get_sidebar( 'after-content' );
}
Cinch
ParticipantHi Barry,
Odd, but this is returning true on every page as well:
Cinch
ParticipantI think your approach at conditionally showing the sidebar is the way I’ll go.
The odd thing is that tribe_is_month() is returning true in this situation. The site is still in heavy development so I can’t say for 100% certainty that nothing else has changed, but this setup worked in the prior version.
Anyway, I’m off to conditionally show the sidebar. Thanks for the idea.
~ Bryan
Cinch
ParticipantHi Barry,
Widget Logic is the only place I need to use this conditional. The example above was just a test run in a widget to see if it fires, which it did, even when not on a month view page. Perhaps that conditional is only available within the context of the plugin?
How would you go about displaying a widget only on the main calendar page?
Thanks for the quick reply,
~ BryanCinch
ParticipantHi Jonah,
The main calendar page and a singular event.Thanks.
July 8, 2013 at 10:59 am in reply to: Getting rid of "Related Events", or at least the big grey calendar images #53812Cinch
Participant+1 for @Tim‘s request to change the order of the related events – preferably below everything else.
Cinch
ParticipantThat’s fantastic Jonah, thanks so much!
Cinch
ParticipantJust an update for anyone needing to show only today’s events.
I decided to use `new WP_Query` with these query `$args`:`
‘tribe_events’,
‘showposts’ => 5,
‘start_date’ => $current_date,
‘end_date’ => $current_date
));
?>
`Cinch
ParticipantThanks for the reply Barry. Sorry it took so long to reply but I must not have ticked the ‘notify me by email’ option…
I’ll give this a try and get back with what I found. Ideally I’d like to push this into the template rather than use/create a widget.
-
AuthorPosts
