Conflict with Stratfort Theme

Home Forums Calendar Products Events Calendar PRO Conflict with Stratfort Theme

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #690116
    rrosen326
    Participant

    Hi – 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.

    #691948
    rrosen326
    Participant

    Never mind – figured it out. This is a dup too:

    How to debug (and fix) a theme conflict

    #692199
    Brian
    Member

    Hello,

    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

    #692270
    rrosen326
    Participant

    Actually, I would love a little help – my wordpress skills are weak.

    The theme does this:
    // Admin scripts enqueue

    function 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?

    #699111
    Brian
    Member

    Hello, 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

    #701163
    rrosen326
    Participant

    Worked perfectly – thanks!

    #701836
    Brian
    Member

    I 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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Conflict with Stratfort Theme’ is closed to new replies.