Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Bob, I would agree, it sounds like data that was not removed by the other plugins upon deactivation. Hopefully you can get it worked out. Let us know if there’s anything else we can do for you.
– Jonah
Jonah
ParticipantHi Jim,
Your theme is applying a bunch of styling to the editor because it’s using fairly general CSS selectors like #content tr td which is targeting the buttons in the editor. The easiest thing to do would probably be to override these style applications via CSS specificity and overriding this styling with some reset CSS.
You can see what I’m talking about with your theme applying styling if you simply right click one of the buttons and select Inspect Element in Chrome and then in DOM tree click on the nearest td element and you should see something similar to this in the CSS inspector: http://cl.ly/3f1D1o230r1b401D2K1y – see how one of the first CSS rules being applied from the theme is setting the td padding? If you uncheck some of the boxes in the CSS inspector you can start to see how much of an effect this has and also get a sense of what you need to override to get everything normal again.
So, how to fix this? If we start with the #content tr td rule, we could easily override this by going up the DOM tree and seeing that the editor mainly resides in the .events-community-post-content div which is nested within #content. So a CSS rule to override the padding for example could be:
#content .events-community-post-content tr td {
padding: 0;
}
By throwing in a class you add to the specificity of this rule and you trump the other rule that had only the ID element and the raw HTML elements. Make sense? So, along these same lines you should be able to remove all of the other styling that inadvertently being applied by your theme.I hope that helps but let me know if you have any other questions about this.
– Jonah
Jonah
ParticipantHi Meg,
That’s strange because I do not see this on my end using the Genesis theme framework with the stock events single.php file and using the code I supplied on Github. It might be an issue with your theme – have you tried reverting to the Twenty Eleven theme to see if that fixes it? Or, try deactivating all other plugins to see if maybe some plugin you have installed is causing problems? These are the first two things you should check. Let me know what turns up after trying that out.
Thanks,
JonahJonah
ParticipantHi Jim,
I think I have a good interim solution for this. You can use the adjacent CSS selector (+) and target the .type-wp_router_page class which will be unique enough (I doubt any other plugin you have is going to be using WP Router) for now. Here’s the CSS:
.type-wp_router_page + #comments + #respond {
display: none;
}
This will hide just the respond form… In 1.0.1 we’ll have conditionals and body classes for the community pages so targeting things in CSS and applying custom code to community pages will be much easier!I hope that has been helpful 🙂
– Jonah
Jonah
ParticipantHi John,
No worries. Hmmm, well, keep playing with the WordPress SEO settings (do you have the latest version?). I’ve got to head out but will try and revisit this later tonight or tomorrow.
Jonah
ParticipantHi Sheila,
The title thing sounds like more of a Headway issue since it’s their theme that’s supposed to be getting the event titles. I wonder if there is a way to filter their function to be able to include custom post types (our plugin uses a custom post type for events)… You might want to email them and explain your issue and see what they can do to help. You could also try using something like http://wordpress.org/extend/plugins/wordpress-seo/ which will let you set titles for custom post types without touching the code.
If you’ve modified /wp-content/plugins/the-events-calendar/views/single.php it’s possible some extra code got put in there that’s causing the problem… You may want to look at that or /wp-content/plugins/the-events-calendar/views/ecp-single-template.php – maybe the break is in one of those. You could possibly use CSS but I don’t know how reliable it will be because we don’t know for sure if that will be in every event, or is it?
– Jonah
Jonah
ParticipantHi John, ok I think I’ve got this figured out. If you go into the SEO > Titles menu for the WordPress SEO plugin you will have options to set the title and meta description for the Tribe_events page (the main calendar page) and the Tribe_events_cat taxonomy. Take a look at the title settings parameters you can use (use %%term_title%% for event category name) and plug in your titles and descriptions and that should work.
Let me know if you need anything else with this.
Cheers,
JonahJonah
ParticipantHi Mike,
Sorry to hear about the issues. Please try the following:
1. Set your permalinks to “Postname” in Settings > Permalinks.
2. Are you running the latest version of WordPress.
3. Are you running the latest versions of our plugins (2.0.6)
4. Have you tried deactivating all other plugins to rule out a conflict?
5. Have you tried reverting to the Twenty Eleven theme to see if it’s something with your theme?Let me know if any of that helps.
Thanks,
JonahJonah
ParticipantHi William,
Unfortunately there is currently no easy way to do this but we’ve got a fair amount of people asking for it and there’s a ticket out to figure out a solution for it so it may get done in the relatively near future but no promises.
Cheers,
JonahJonah
ParticipantHi Robert, if you paste this code into your functions.php file you can filter what categories are displayed in the calendar:
/*-----------------------------------------------------------------------------------*/
/* Exclude a category from the calendar
/*-----------------------------------------------------------------------------------*/add_action( 'pre_get_posts', 'exclude_events_category' );
function exclude_events_category( $query ) {if ( $query->query_vars['post_type'] == TribeEvents::POSTTYPE && $query->query_vars['eventDisplay'] == 'month' && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'tax_query', array(
array(
'taxonomy' => TribeEvents::TAXONOMY,
'field' => 'slug',
'terms' => array('presentations'),
'operator' => 'IN'
)
)
);
}return $query;
}
Make sure to change ‘presentations’ to the name of your category.
– Jonah
Jonah
ParticipantHi Robert, the best way to do this is via the language files. Make sure you follow the instructions here carefully: https://theeventscalendar.com/faq/can-i-change-the-language-that-the-content-of-my-calendar-appears-in-on-the-site/
Jonah
ParticipantHi Kirsty, this is certainly possible but too complex for us to be able to offer a solution at this time. Ultimately you’re going to want to do something with the pre_get_posts function in WordPress to modify the query. Here is an example but you’ll need to figure out a way to pass in the venue ID based upon a drop down selected:
add_action( 'pre_get_posts', 'filter_by_venue' );
function filter_by_venue( $query ) {if ( $query->query_vars['post_type'] == TribeEvents::POSTTYPE && $query->query_vars['eventDisplay'] == 'month' && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set('venue',$venue_id);
}return $query;
}
I hope that helps!
– Jonah
Jonah
ParticipantHi Meg,
1. You are correct, the next link is not showing because there is no next page yet…
2. I think this code will help you out with both questions: https://gist.github.com/2846535 – basically it just adds some more logic to detect if there is a link available and if not, display a span tag with a class of ‘inactive’ which you can just remove and then there should be nothing displayed if there is no link… But you could also keep this code and show something different for the “inactive” state if you wanted.I hope that helps!
– Jonah
Jonah
ParticipantHi Javier, can you please post cleaner code preferably at a dedicated code pasting website like http://pastie.org, http://pastebin.com or http://gist.github.com
Thanks,
JonahJonah
ParticipantOh, another place you may want to look for the browser titles is in your themes header.php file…
-
AuthorPosts
