Mathew

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 264 total)
  • Author
    Posts
  • in reply to: Hide Modern Tribe News from dashboard #1352265
    Mathew
    Participant

    Hello,

    There’s two ways to accomplish this.

    This will disable it for everyone. Place the code in the wp-config.php file.

    
    
    define('TRIBE_HIDE_UPSELL', true);
    
    

    This will disable it for everyone except site admins. You can alter the IF statement depending on the role you want to target. Place it in your custom functions.php.

    
    
    function remove_tribe_dashboard_widget() {
    	if ( ! is_super_admin() ) { // Set to whatever role you want to target
    		remove_meta_box('tribe_dashboard_widget', 'dashboard', 'normal');
    	}
    }
    add_action('wp_dashboard_setup', 'remove_tribe_dashboard_widget');
    
    

    Hope this helps.

    in reply to: Additional Fields allow HTML #1351403
    Mathew
    Participant

    Susan,

    Please note that the use of esc_html in output is done for a reason.

    I see that in one of your previous posts, you conducted a PCI audit. Removing the escaping may or may not cause warnings in future audits and vulnerability scans.

    There’s plenty of great reads on the Internet on the topic of escaping HTML and best practices.

    I am not saying don’t do it, but understand why it’s there to begin with.

    in reply to: Column being obscured by nav #1351345
    Mathew
    Participant

    Erin,

    Looks great. Glad the media query worked.

    in reply to: Google Structured Data and Time Offset #1351166
    Mathew
    Participant

    This reply is private.

    in reply to: Column being obscured by nav #1350904
    Mathew
    Participant

    Erin,

    The issue is with the DIVI theme margin calculations.

    The nav bar is set at 325px wide.


    .et_vertical_nav #page-container #main-header {
    width: 325px;
    }

    However the theme is only setting the left margin to 225px.


    .et_vertical_nav #et-main-area, .et_vertical_nav #top-header {
    position: relative;
    margin-left: 225px !important;
    }

    The code you were given/using should work fine, however you may want to wrap it in a CSS media query for specific breakpoint. That way it will only apply to larger screens. You may want to add !important to it too.

    Funny thing is the theme author takes this into account for other elements, but the Divi builder uses #et-main-area and that has an !important already set. So you would have to use greater CSS specificity to override it.


    .et_vertical_nav #main-content, #main-footer, #top-header {
    margin-left: 100px !important;
    }

    Hope this helps.

    in reply to: Mobile View of Grid Problem #1349524
    Mathew
    Participant

    Jen,

    Avada now has its own minfication that is on by default. It will compress CSS and JS within the Avada product. There’s a button in Avada to disable the feature and to clear its cache. For testing purposes, I would do both. Set “CSS Compiling method” to Disabled. Set “Enable JS Compiler” to OFF. Reset Fusion Caches.

    It’s located under Avada > Theme Options > Advanced > Dynamic CSS & JS.

    in reply to: Removing Export Links Plugin #1349365
    Mathew
    Participant

    Del,

    Here’s two snippets that I have had success with in the latest versions of TEC. Give them a try. As you know, back-up your functions.php before modification.

    // -----------------------------------------------------------------------------------
    // Removes iCal Export and Google Calendar button from single view
    // https://theeventscalendar.com/support/forums/topic/removing-ical-and-google-calendar-links/#dl_post-1234845
    // -----------------------------------------------------------------------------------

    function tribe_remove_single_calendar_links() {
    if ( function_exists( 'tribe' ) ) {
    remove_action( 'tribe_events_single_event_after_the_content', array( tribe( 'tec.iCal' ), 'single_event_links' ) );
    }
    }
    add_action( 'init', 'tribe_remove_single_calendar_links' );

    // -----------------------------------------------------------------------------------
    // Removes EXPORT MONTH'S EVENTS button from month view
    // https://theeventscalendar.com/support/forums/topic/removing-ical-and-google-calendar-links/#dl_post-1234920
    // -----------------------------------------------------------------------------------

    function tribe_remove_calendar_export_links() {
    if ( function_exists( 'tribe' ) ) {
    remove_action( 'tribe_events_after_footer', array( tribe( 'tec.iCal' ), 'maybe_add_link' ) );
    }
    }
    add_action( 'init', 'tribe_remove_calendar_export_links' );

    Hope this helps.

    in reply to: Mobile View of Grid Problem #1348950
    Mathew
    Participant

    Cassandra,

    The issue may be a result of your minification/caching plugin. You may want to temporarily disable it to see if the issue resolves itself.

    The Events Calendar does not recommend minifying or compressing any of it’s components. Here’s an article on the subject.

    If the problem does go away after disabling the minification plugin, then you may want to re-enable it and review its settings to see if you can exclude certain things, most importantly anything related to The Events Calendar plugins.

    If that does not resolve the issue, then more in-depth plugin conflict troubleshooting will need to be done.

    Hope this helps.

    in reply to: How to filter out categories in search-bar? #1348545
    Mathew
    Participant

    Ernest,

    You could use the following links depending on which view you want.

    http://e-avrop.com/events/kategori/nytt-lou-luf/
    http://e-avrop.com/events/kategori/nytt-lou-luf/manad/

    Alternatively you could build a Menu with the categories. Event Categories is an option within the Menu editor. In WordPress go to Appearance > Menus > Edit Menus > Event Categories. The menus will also provide you with the links to the categories.

    Hope this helps.

    in reply to: All events are listed as a single letter per line! #1348538
    Mathew
    Participant

    Felicity,

    The issue is a result of other plugins adding columns to the events admin view. There’s two ways to resolve this.

    The easiest way is to reduce the number of items shown. To do this, click the “Screen Options” at the top-right of the events admin screen where the issue is present. Uncheck any unnecessary Columns.

    Alternatively you could install the Advanced Post Manager by Modern Tribe. It will resolve the issue and provide some other great filtering features.

    Hope this helps.

    Mathew
    Participant

    There may be a handler in place that prevents this. Not to say it’s not doable, with some work. As a side note, [tribe_events_list] embeds just fine in single event. There’s also a GREAT plugin that will create widget areas on single events.

    
    
    	/**
    	 * Handler for the [tribe_events] shortcode.
    	 *
    	 * Please note that the shortcode should not be used alongside a regular event archive
    	 * view nor should it be used more than once in the same request - or else breakages may
    	 * occur. We try to limit accidental breakages by returning an empty string if we detect
    	 * any of the above scenarios.
    	 *
    	 * This limitation can be lifted once our CSS, JS and template classes are refactored to
    	 * support multiple instances of each view in the same request.
    	 *
    	 * @param $atts
    	 *
    	 * @return string
    	 */
    
    in reply to: header changes #1347844
    Mathew
    Participant

    Alyson,

    The reason you cannot find the option is that the author of the Enfold theme has intentionally hidden these and other options. There are articles on their support site that provide instructions, but they impact other areas that Kriesi has customized with regards to The Events Calendar. If you are wanting to restore these settings and remove the search bar, you would need to contact Kriesi’s support.

    Hope this helps.

    in reply to: Remove (not hide!) export links in event views #1347820
    Mathew
    Participant

    Dinah,

    It’s great that you found the templates!!! The articles that you mentioned above are outdated.

    Tribe__Events__iCal has been depreciated and replaced with tec.iCal.

    Here’s an article that will remove them in different views.

    Hope this helps.

    in reply to: Adjusting typography in column mode Part 2 #1347811
    Mathew
    Participant

    Tracy,

    The size and color of this element can be controlled through the Avada settings. I believe it is picking it up from the H4 title settings. Look in the Typography section of Avada.

    This and many other elements can be modified through Avada’s settings. Here’s an article on the subject focused on The Events Calendar.

    Please note that Avada HIGHLY customizes The Events Calendar, with such it limits the amount of support the wonder TEC staff can offer in certain areas.

    For example, the grid view on your home page was designed and is styled by Avada’s Fusion CSS. So if you are wanting to change the looks of this element, you may want to reach out the theme author.

    Hope this helps.

    in reply to: Recurring events – unable to empty trash #1347709
    Mathew
    Participant

    Patricia,

    I just created an new sandbox to repro the issue and I could reproduce the issue. Here’s the exact steps I took.

    MAMP Server running PHP 7.1.6.
    Created new WP 4.8.1 install.
    Installed TEC 4.5.12.2
    Installed TEC Pro version 4.4.17

    Make no setting changes whatsoever.

    Create an event (leave default time/date) with a weekly recurrence (7 weeks). Publish event.
    From admin view, hover over FIRST event date and select TRASH SERIES.
    Select TRASH from the admin menu. Select EMPTY trash button.
    White screen will appear.

    Check server error logs.


    [11-Sep-2017 20:16:56 UTC] PHP Warning: Illegal string offset 'exclusions' in /Users/Mathew/Sites/tribetest/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 417
    [11-Sep-2017 20:16:56 UTC] PHP Warning: Illegal string offset 'exclusions' in /Users/Mathew/Sites/tribetest/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 420
    [11-Sep-2017 20:16:56 UTC] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /Users/Mathew/Sites/tribetest/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php:420
    Stack trace:
    #0 /Users/Mathew/Sites/tribetest/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php(400): Tribe__Events__Pro__Recurrence__Meta::add_date_exclusion_to_recurrence('A', '2017-09-18 08:0...')
    #1 /Users/Mathew/Sites/tribetest/wp-includes/class-wp-hook.php(298): Tribe__Events__Pro__Recurrence__Meta::handle_delete_request('10')
    #2 /Users/Mathew/Sites/tribetest/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #3 /Users/Mathew/Sites/tribetest/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /Users/Mathew/Sites/tribetest/wp-includes/post.php(2460): do_action('before_delete_p...', '10')
    #5 /Users/Mathew/Sites/tribetest/wp-admin/edit.php(146): wp_delete_post('10')
    #6 {main}
    thrown in /Users/Mathew/Sites/tribetest/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 420

Viewing 15 posts - 121 through 135 (of 264 total)