Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHey Clay,
!important will override all other styling including normal specificity rules unless the underlying specificity is higher (with the !important rule). As a general practice you should limit your use of !important as much as possible and instead rely on specificity scoring in CSS to apply styling. Using !important can cause conflicts that can be troublesome to work with. And with specificity scoring there’s really no reason to use !important. If you need to trump a declaration just add more id’s or classes to it to score higher.
I hope that helps!
– Jonah
November 6, 2012 at 10:52 am in reply to: one question // how to using "POST QUERY" add the latest events? #27612Jonah
ParticipantHey Dusan,
When using query_posts or WP_Query use:
'post_type'=>array(TribeEvents::POSTTYPE)
…for the post_type argument.– Jonah
Jonah
ParticipantHi ML,
1. You’ll need to troubleshoot the CSS a bit and figure out where the element is going to. It sounds like it’s just being hidden on the page somehow. We test our plugin extensively in the default Twenty Twelve theme in WordPress in different browsers but cannot guarantee compliance with all other themes in all browsers. What version of IE?
2. For the list title you’ll need to first check whether you are using the Default Events Template or Default Page Template or other theme template from your theme in Events > Settings > Template. If using the former you should be able to use the following in your functions.php file: https://gist.github.com/4025639
I hope that helps!
– Jonah
Jonah
ParticipantHi Adam,
I would suggest taking a look at our documentation on custom queries here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events – you can use tribe_get_events() in that way or you can also roll your own using WP_Query and querying the post type of ‘tribe_events’ like so: https://gist.github.com/4025547
I hope that helps!
– Jonah
Jonah
ParticipantHi Clay,
Well it’s hard to give you specifics without an example or two. Do you have an example of something you were trying to override and the code you used? The key thing with CSS specificity is that you can “trump” other CSS declarations by applying a higher specificity. So if you have the following:
.a-class {
color: #fff;
}
You can override that by prefixing with an ID selector which will score it higher:
#an-id .a-class {
color: #000;
}
Does that help?November 6, 2012 at 6:52 am in reply to: Customisation – white box showing event info and greying out 'full' events #27590Jonah
ParticipantHi David,
To remove the background add the following CSS in your themes style.css file:
#tribe-events-loop .tribe-events-event-list-meta td, #tribe-events-loop .tribe-events-event-list-meta tr {
background: none;
}
For the Eventbrite ticket question, you should be able to use the following template tag: https://theeventscalendar.com/support/documentation-eventbrite-tickets/eventbrite-template-tags/#functiontribe_eb_get_ticket_count – you would simply add logic for this in /wp-content/plugins/the-events-calendar/views/gridview.php or /wp-content/plugins/the-events-calendar/views/table.php for each event to check what the ticket count is and add a class to an event element that you can style. This is beyond what we can actually help you with so you’ll need to do the actual coding yourself. If you’re going to modify either of those two files make sure to make copies and place in an ‘events’ folder in your theme.I hope that helps!
– Jonah
November 5, 2012 at 8:08 pm in reply to: No end time? Also the single page phone number issue. #27584Jonah
ParticipantHi Shaun,
You can modify the templates to not show the end date/time – please take a look at this article explaining modifying templates for our plugin: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/#views
I’m not sure why that extra phone number is showing. Did you modify the single.php template adding some other field? Could you paste the contents of it to http://snippi.com/
Thanks,
JonahJonah
ParticipantHi Wojciech,
Please take a look at our FAQ concerning translation here: https://theeventscalendar.com/faq/can-i-change-the-language-that-the-content-of-my-calendar-appears-in-on-the-site/
– Jonah
Jonah
ParticipantHi Clay,
It may help to read up on CSS specificity to learn about how you can override or apply styling to elements in CSS: http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/
Another thing to know is that you should always be using an override of the events.css by making a copy of /wp-content/plugins/the-events-calendar/resources/events.css and placing in an ‘events’ folder in your active theme. Then you can safely make any changes or additions and retain them when updating the plugin.
I hope this helps.
– Jonah
Jonah
ParticipantHi Sharon,
A 500 error can be indicative of not enough PHP memory allocated for your website. You can increase this a number of ways. Here are a few options: http://www.dailyblogging.org/wordpress/increase-wordpress-memory-limit/ – I would suggest trying that first. Let me know how that goes.
Thanks,
JonahJonah
ParticipantHi Sharon,
What is the error you are getting? Unfortunately we’ll need you to try deactivating plugins or switching your theme, otherwise we can’t troubleshoot the issue.
– Jonah
Jonah
ParticipantHi Adam,
Take a look at our documentation on https://theeventscalendar.com/support/documentation/events-calendar-pro-template-tags/#functiontribe_get_custom_field and https://theeventscalendar.com/support/documentation/events-calendar-pro-template-tags/#functiontribe_custom_field – you’ll want to replace the general call for all fields in the single event view with the call to each individual field. You can do this by making a copy of /wp-content/plugins/the-events-calendar/views/single.php and placing in an ‘events’ folder and then making your modifications to that file.
I hope that helps but let me know if you need anything else.
– Jonah
November 2, 2012 at 11:49 am in reply to: WooThemes conflict with frontend submission form status? #27497Jonah
ParticipantAwesome, glad that worked Kyle. Let me know if there’s anything else you need.
Thanks,
JonahJonah
ParticipantHi Thomas,
The best way to do this is with the pre_get_posts hook. Here is some sample code you can add to your functions.php file:
add_action( 'pre_get_posts', 'filter_events_list' );
function filter_events_list( $query ) {
if ( $query->query_vars['eventDisplay'] == 'upcoming' || $query->query_vars['eventDisplay'] == 'past' && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'tax_query', array(
array(
'taxonomy' => TribeEvents::TAXONOMY,
'field' => 'slug',
'terms' => array('2012'),
'operator' => 'IN'
)
)
);
}
return $query;
}
Change ‘2012’ to whatever the slug of your category is that you want to display. Being able to filter on the fly is more complicated and not something we will be able to help you with although this functionality is likely coming in a future version. For now though you’ll need to code it yourself or hire someone to help you.I hope that helps.
– Jonah
November 1, 2012 at 7:44 pm in reply to: WooThemes conflict with frontend submission form status? #27471Jonah
ParticipantHi Kyle,
Ok, thanks for verifying that. It looks WooThemes supplied a CSS fix for this using this snippet: http://snippi.com/s/ck7jljp – can you please try this and let me know if it works for you or what it still hidden?
Thanks,
Jonah -
AuthorPosts
