Search Results for 'dequeue'

Home Forums Search Search Results for 'dequeue'

Viewing 15 results - 61 through 75 (of 274 total)
  • Author
    Search Results
  • #1376263
    nysci
    Participant

    Thanks, Patricia. Your reply wasn’t helpful. However, I did solve it myself. What was missing were the special mobile stylesheets. Also, the skeleton styles were adding some unhelpful css, and needed to be dequeued.

    In case it will help someone else, I’ll post my final code. This is what you want to use if you do not want TEC styles applied to single event pages, but do want them applied to month/week/day pages. In my settings, I chose “skeleton.” Then I added this to functions.php in my theme:

    
    add_action('wp_enqueue_scripts', 'mycustom_enqueue', 99);
    function mycustom_enqueue() {
    	if (!is_admin()) {
    		if (tribe_is_month() || tribe_is_week() || tribe_is_day()) {
    			wp_dequeue_style('tribe-events-calendar-style'); // remove skeleton css
    			wp_dequeue_style('tribe-events-calendar-pro-style'); // remove other skeleton css
    			wp_enqueue_style('tribe-events-full-calendar-style', WP_PLUGIN_URL.'/the-events-calendar/src/resources/css/tribe-events-full.min.css');
    			wp_enqueue_style('tribe-events-theme', WP_PLUGIN_URL.'/the-events-calendar/src/resources/css/tribe-events-theme.min.css');
    			wp_enqueue_style('tribe-events-calendar-full-mobile-style', WP_PLUGIN_URL.'/the-events-calendar/src/resources/css/tribe-events-full-mobile.min.css');
    			wp_enqueue_style('tribe-events-calendar-mobile-style', WP_PLUGIN_URL.'/the-events-calendar/src/resources/css/tribe-events-theme-mobile.min.css');
    		}
    	}
    }

    Aaron Hodge Silver
    Springthistle Tech

    Home

    #1375737
    Geoff B.
    Member

    Good evening Ben,

    Thank you for the files.

    I was able to establish that there seems to be a conflict with the Superfish JS package that comes with the Salient theme.

    You can test that by removing line 38 of the functions.php file of your theme.

    I would recommend reaching out to the good folks behind Salient to see what they would advise.
    Ideally, if there was a way to dequeue Superfish in Tribe related pages, that could work.
    Either that or consider upgrading the version of that script (which looks like it’s 4 years old).

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1368545

    Hi Nicholas,

    Thanks so much for reaching out again!

    You can try this extension, where you can select the which CSS Styles and Javascript Files to dequeue:

    https://theeventscalendar.com/extensions/dequeue-assets/

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1364085

    Hi Uwe,

    Thanks so much for providing us with all of that information.  Before moving forward,  could you please provide us with your complete system information in a private reply using the instructions found in the following link?

    https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    It sounds like you have isolated the issue to a conflict between your theme and our plugins.  However have you tried switching to a default theme and seeing if the errors still occur?  I just want to confirm that this is the issue.

    In the meantime, you can take a look at some of the settings you have in Avada and seeing if adjusting them helps: https://theme-fusion.com/avada-doc/special-features/css-compiler/

    And you can try this extension, which can dequeue some of the CSS Styles and Javascript Files that may be causing a conflict: https://theeventscalendar.com/extensions/dequeue-assets/

    Let me know how it goes!

     

    Thanks,

    Jaime

    Victor
    Member

    Hi Joanna!

    I’m sorry you are experiencing that issue. Let me help you with it.

    The following is a code snippet that will prevent the select2.js file to be loaded in the frontend:

    /**
    * An example for how to dequeue a script
    *
    * Obtain the handle of your script by searching through the code, and then
    * add a wp_deregister_script() function call for that handle.
    */
    function tribe_dequeue_script_example() { 
    wp_deregister_script( 'tribe-select2' );
    }
    add_action( 'wp_enqueue_scripts', 'tribe_dequeue_script_example', 100 );

    Bear in mind you would have to use checkboxes or dropdowns for all the fields. It will break autocomplete and the active filter coding, which in turn could break how the Filter Bar works.

    On the other side, while we don’t suggest to do it, you can downgrade to The Events Calendar version 4.4.3 which uses Chosen instead of Select2.

    I hope it helps you achieve what you are looking for. Let me know if there’s anything else I can help you with.

    Best,
    Victor

    #1357766
    Victor
    Member

    Hi Nancy!

    Glad to know the excerpt article is of help.

    I’m sorry you have experienced such a hard time customizing the syles. Let me try to help you with that.

    First, please let me note that we are fairly limited in how much support we can give for custom development questions like these. That said, we always like helping out and at least point users into the right direction as much possible.

    How do I get the “raised panels” to extend the full width of the 2/3 column

    This is something that really depends on your theme. I managed to extend the width of the events container so that it fits better with the following CSS snippet, but might need extra adjustement:

    .tribe-mini-calendar-event { width: 100% !important; }

    As for the text to wrap around the image you can try the following CSS:

    .tribe-mini-calendar-event .tribe-event-image {
    float: left;
    }
    .tribe-mini-calendar-event .list-info {
    width: 80% !important;
    }

    You can customize the featured highlight color using the WordPress customizer by going to your wp-admin > Appearance > Customizer > The Events Calendar > General Theme. But, if you want to set it transparent, you’ll have to use the following CSS snippet:

    #tribe-events-content table.tribe-events-calendar .type-tribe_events.tribe-event-featured {
    background-color: transparent !important;
    }

    For further customizations, let me point you to a couple of articles that will point you to how you can further customize the look and feel of the templates:

    I hope that helps! Let me know how it goes.

    Best,
    Victor

    #1355937
    Geoff B.
    Member

    Good evening Robert and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.

    We are sorry to hear about the monthly view no longer working on your site.
    I would love to help you with this topic.

    By the looks of it, there is a Javascript error being generated on https://www.myfathersmustache.com/events-charleston/. You can see that in the Google Developer tools console.

    More specifically, the error comes from https://www.myfathersmustache.com/wp-content/themes/mfm/js/sticky.js?ver=4.8.2

    One solution could be to dequeue that specific script from the post-type-archive-tribe_events pages: https://gist.github.com/elimn/e302522579650914e03048ebed146854 or to dequeue that script altogether.

    But before you do any of that, it looks like you are not using the latest version of our plugins. I would recommend updating both the Events Calendar and the Events Calendar Pro to the latest version in case that helps.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1351924

    In reply to: Style the maps

    Patricia
    Member

    Hey Dinah,

    Thank you for reaching out to us!

    To achieve what you want you need to dequeue pro/src/resources/js/tribe-events-ajax-maps.min.js and then enqueue your own script instead.

    I would suggest you to check this post for further information on how to dequeue Events Calendar scripts.

    I’ve implemented a simple example to help you get started with this customization: please note that this method is not ideal, since you will loose your changes with the plugin updates:

    1- First, create a backup copy of:

    events-calendar-pro/src/resources/js/tribe-events-ajax-maps.min.js

    2- After that, open tribe-events-ajax-maps.min.js and replace the minified code with:

    https://gist.github.com/nefeline/bf22f7fbb45c87d743c7b60912bc18f4

    3- In this example I implemented my own style (from this example) on line 122 and this is the result you will see in your main Map view calendar.

    I hope this helps you get started! Let me know if you need anything else and I’ll be happy to assist!

    Best regards,

    Patricia

    #1349137
    Andras
    Keymaster

    Hey Brian,

    This snippet should do that:

    /**
    * An example for how to dequeue a script
    *
    * Obtain the handle of your script by searching through the code, and then
    * add a wp_deregister_script() function call for that handle.
    */
    function tribe_dequeue_script_example() {
    wp_deregister_script( 'tribe-events-jquery-resize' );
    }
    add_action( 'wp_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );
    add_action( 'admin_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );

    Just change the function call.

    Let me know if that helps.

    Cheers,
    Andras

    #1348639
    Brian Walters
    Participant

    Thanks Andras. I thought that might be the only option. Could you suggest the best way to “dequeue” that JS file? Editing the JS file is the easier part, IMHO. 🙂

    #1344602
    Patricia
    Member

    Hey Dylan,

    Thank you for reaching out to us! At this moment there is no feature to change the number of columns in Photo View.

    If this is something you want to see implemented in future releases, I would recommend casting a vote in our Feature Ideas here:

    https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/16732288-photo-view-with-2-columns-instead-of-3

    To help you get started, the layout is created using the Isotope Script, then we run a script to initialize Isotope on that page:

    events-calendar-pro/src/resources/js/tribe-events-photo-view.min.js

    Non-minified Version:

    events-calendar-pro/src/resources/js/tribe-events-photo-view.js

    So to change the formatting you can wp_dequeue_script the first script and then replace it with your own.

    Unfortunately, that is the only way to get this done right now and it is beyond the support we can provide to do this customization, but I can assist if you have further questions in the mean time.

    Regards,

    Patricia

    #1339510
    Shelby
    Participant

    Hey Justin,

    Thanks for providing that additional detail! 🙂

    So, officially, we don’t support theme conflicts, but here’s what I would suggest:

    1. Reach out to their theme support, especially if they bundled or advertised compatibility with our plugins. 🙂
    2. We have this free extension that has the ability to dequeue CSS and scripts, which might help resolve the conflict if you can dequeue the javascript that you are experiencing a conflict with. Anything that can’t be dequeue’d with this extension, is essential, and will need to be resolved by the theme developer.

    Let me know if there’s anything else I can do to help you out here!

    Best,

    Shelby 🙂

    #1323708
    Doron
    Participant

    Hey
    Updated to the latest version issue persists

    know you are already underway to getting the WPML configuration just right.

    this was because of a different issue that is not relevant to this one.

    I was able to test your theme and it worked properly

    The issue occurs while setting Hebrew to the default language of the site – did you do the same? If it’s not the theme then what? we spent 178$ on a set of plugins that don’t work.

    It is usually better not to have competing versions of the same script on a web page. In an ideal world, you would dequeue the theme’s select2 script at least on the Community Events page.

    I’ve deregistered the script

    function tribe_dequeue_script_example() {
     	wp_deregister_script( 'armonioso-select2' );
    }
    add_action( 'wp_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );

    Only the /events/community/add/ script loads – still the issue persists

    Also cleared al WPML cache.

    How can we proceed on this so that the plugin will work?

    Thanks

    Doron

    Shelby
    Participant

    Hey Michael,

    I’m happy to help out. 🙂

    We don’t officially support theme conflicts, but I think that dequeueing some of the javascript files may help. We have a free extension to dequeue some of our scripts that you can try here. You also may be able to change some of the compiling settings within Avada, and  you can reference their documentation on that here.

    Unfortunately since we don’t officially support theme conflicts, this will be a bit of a trial and error process to test this solution, but let me know how it goes!

    Best,

    Shelby 🙂

    #1312876
    Nico
    Member

    Hey David,

    Thanks for the patience here! A new version of the extension is available addressing this issue → https://theeventscalendar.com/extensions/dequeue-assets/

    Want to delete the current installed one and test the new version?

    Please let me know how it goes,
    Best,
    Nico

Viewing 15 results - 61 through 75 (of 274 total)