Home › Forums › Calendar Products › Events Calendar PRO › Conflict with Stratfort Theme
- This topic has 6 replies, 2 voices, and was last updated 11 years, 8 months ago by
Brian.
-
AuthorPosts
-
August 21, 2014 at 4:12 pm #690116
rrosen326
ParticipantHi – I have a conflict with the Stratfort theme.
With theme=twenty thirteen, no problem
With theme= Stratfort (http://themeforest.net/item/statfort-educational-wordpress-theme/6839697) the “Events Calendar Settings” page is mostly blank – I see the tabs and nothing else. I CAN however still see the calendar on the site itself (eg: /events/month/?tribe-bar-date=2014-09-01)This theme has its own events functionality so that might be causing it. I’m a coder, though not an expert at wordpress or PHP, so can probably follow your tips. Can you help me debug this (and then fix it)? Unfortunately its on an internal staging server, so hard for you to see.
August 22, 2014 at 11:00 am #691948rrosen326
ParticipantNever mind – figured it out. This is a dup too:
August 22, 2014 at 1:27 pm #692199Brian
MemberHello,
I think I gather from this ticket and the other one you created, “How to debug (and fix) a theme conflict.”
That the issue is resolved in both. Can you please confirm that and I will close out both tickets.
If not let us know how we can help.
Thanks
August 22, 2014 at 1:58 pm #692270rrosen326
ParticipantActually, I would love a little help – my wordpress skills are weak.
The theme does this:
// Admin scripts enqueuefunction cs_admin_scripts_enqueue() {
$template_path = get_template_directory_uri() . ‘/scripts/admin/media_upload.js’;
wp_enqueue_script(‘my-upload’, $template_path, array(‘jquery’, ‘media-upload’, ‘thickbox’, ‘jquery-ui-droppable’, ‘jquery-ui-datepicker’, ‘jquery-ui-slider’, ‘wp-color-picker’));
wp_enqueue_script(‘custom_wp_admin_script’, get_template_directory_uri() . ‘/scripts/admin/cs_functions.js’);
wp_enqueue_style(‘custom_wp_admin_style’, get_template_directory_uri() . ‘/css/admin/admin-style.css’, array(‘thickbox’));
wp_enqueue_style(‘wp-color-picker’);
}
In the themes ‘css/admin/admin-styles.css’ is: .form {display: none};
So, I need to override that.
I created a child theme, but just setting .form {display: block} in the child themes style.css or /css/admin/admin-styles.css doesn’t work. So, I guess I need to hook into the admin page and wait til after the theme enqueues the style, and THEN override the .form{} style. But I don’t know how to do that.Any tips?
August 25, 2014 at 12:19 pm #699111Brian
MemberHello, no problem on helping out.
That is really strange for a theme to blanket hide such a common selector, but…
I think we can just directly put in some css through a function in your theme’s (or child) functions.php
If you put this coding in it should work as it is a better selector then the themes, but may take some tweaking.
function events_show_form_in_theme() {
echo '<style type="text/css">
.tribe_settings .tribe-settings-form.form {display:block;}
</style>';
}add_action('admin_head', 'events_show_form_in_theme');
Let me know if that works out.
Thanks
August 26, 2014 at 6:17 am #701163rrosen326
ParticipantWorked perfectly – thanks!
August 26, 2014 at 10:40 am #701836Brian
MemberI am glad to see you were able to fix this issue.
Since the issue is resolved I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘Conflict with Stratfort Theme’ is closed to new replies.
