Search Results for 'dequeue'

Home Forums Search Search Results for 'dequeue'

Viewing 15 results - 211 through 225 (of 274 total)
  • Author
    Search Results
  • #888007

    In reply to: Cannot dequeue styles

    Allen Presher
    Participant

    Worked like a charm, thank you. On a quick side-note is there any singular function I can check against to see if a page is any one of the events calendar pages? Right now I’m saying:

    if ( !tribe_is_month() && !tribe_is_event() ) :
    //DEQEUE STYLES
    endif;

    Not sure if there is one singular thing I can test against? Other than that thank you again!

    #887930

    In reply to: Cannot dequeue styles

    Casey
    Participant

    stratejusinc,
    Thanks for getting in touch! You should be able to use the following code in your theme’s functions.php to dequeue all Events Calendar styles: https://gist.github.com/ckpicker/ffe7c737b73e5d581bad

    The main thing you’ll want to note is that I’ve set the priority of the ‘dequeue_tribe_styles’ function to 100, so that it is executed after the plugin enqueues the styles. You’ll also want to keep in mind that this will remove styling from all pages on your site, including your Event pages, unless you add some logic to only dequeue styles on non-event pages.

    Give that code a try and let me know if it does the trick for you.

    Thanks! 🙂

    -Casey-

    Brian
    Member

    Hi,

    Thanks for using our plugins and I can help you get going on this.

    The maps are created using javascript so there is not way to modify them using the themer’s guide.

    These are the 4 scripts that create the maps, the Pro script is for the Map view. The minified version is used on the front end.

    the-events-calendar\resources\embedded-map.js

    \the-events-calendar\resources\embedded-map.min.js

    \events-calendar-pro\resources\tribe-events-ajax-maps.js

    \events-calendar-pro\resources\tribe-events-ajax-maps.min.js

    You can either dequeue those scripts and replace them with copies in your theme or edit them directly. If you edit them directly you will lose your changes on every update.

    In those scripts you will want to change MapTypeId.ROADMAP to MapTypeId.SATELLITE or one of the other option types.

    There is not much more I can help with this customization and that gets you close to what you are looking for. Once the changes are made please make sure to clear your browsers cache or the changes will not show.

    Let me know if you have any follow up questions.

    Thanks

    Barry
    Member

    Hi there – sorry to hear you are experiencing difficulties.

    It definitely isn’t optimal to load two different versions of jQuery and as it seems to be your theme that is responsible for this I’d strongly recommend taking this question over to them and asking A) how you can dequeue it, and B) if this will indeed have any effect/if foundation.min.js will successfully continue to run with the default version of jQuery bundled with WordPress.

    Is that a possibility here? I’m afraid it’s really difficult for us to assess this and really you – quite possibly with the assistance and knowledge of the theme author – will be in the best position to determine if the theme will suffer adversely should those resources be removed.

    Is that possible here?

    Thanks!

    #862926
    Geoff
    Member

    Hey there, Cody. Thanks for following up. 🙂

    Interesting! I haven’t worked with Gantry before but it looks pretty neat. It also looks like it tries to handle a lot the page-building capabilities that are typically default in WordPress. That makes me wonder if it isn’t trying to take control of the event pages as well.

    Events pages are actually registered as pages in WordPress and I’ve seen a few cases where themes (or plugins) have forced those pages into an Archive template. I’m sure that’s what’s happening here, but thought it’s worth noting.

    I would suggest reaching out to the Gantry folks first to see if they have any recommendations of where to start. In the meantime, one thing yo might want to try on your end is dequeuing the scripts of that plugin when the site is on an events page. There is more information on wp_dequeue_script() at the WordPress Codex. That might look something like this:

    function my_dequeue_scripts() {
    if ( tribe_ is_month( ) ) {
    wp_dequeue_script(); // The script to deque
    }

    Here is a list of a bunch of conditions you can use to target event pages.

    I hope this helps!

    Geoff

    #853552
    Josh
    Participant

    Hello staglabel,

    Thanks for reaching out to us!

    If you’ve made the change to the file but are struggling to see it live, it is most likely due to the fact that the minified version of that file is what’s being enqueued within the plugin.

    A better approach for managing this would be to dequeue the original minified script within your theme and then copy the js file that you’ve modified into your theme and then enqueueing the file from there.

    Let me know if this helps.

    Thanks!

    #840813
    Brian
    Member

    Hi tw2113,

    Sure it is possible.

    Try this coding out:

    https://gist.github.com/jesseeproductions/486ac10c8a7e3b246660

    You will have to add that to your theme’s functions.php and comment out the 2nd and 3rd wp_dequeue_script as only the first one is needed to disable ajax on the month view.

    Let me know if that works.

    Thanks

    #832714
    Geoff
    Member

    Hi there, Jon! Thanks for getting in touch and sorry you’re running into some trouble here.

    The photos ought to align properly when the vertical filter bar is toggled and they seem to do that properly in my test site. Are there any scripts or CSS on your site that are preventing that from happening? I was unable to see an example on your site.

    I imagine you could force a page load when toggling the filter bar. Then again, AJAX would kick back in once a filter is selected, possibly putting you in the same situation. You can enqueue/dequeue any of your own scripts to handle that and set up a filter using the tribe_events_ajax_response hook to create the behavior you’re looking for.

    The most efficient solution is likely to manage it at the CSS level so the photos align properly at given breakpoints.

    I hope this helps!

    Cheers,
    Geoff

    #828834
    Brook
    Participant

    Howdy wowlookart,

    Thanks for the thorough documentation. Now we skip right to trying to find a solution. Are you using the Carousel Slider on event pages? One thing that might be possible is to dequeue the carousel script(s) on events page. With those out of the picture it is unlikely you would get a JS error. You might need to check with them to get a copy of all of their scripts though, if you do not know how to find those yourself.

    Another more remote possibility is that the unminified version of our plugin would work better. If you dequeue that file “tribe-events-ajax-list.min.js” and enqueue “tribe-events-ajax-list.js” instead that might remove the error. It’s a longshot for sure.

    Does that answer your question? Are you able to get those scripts deququed you think? Please let me know!

    – Brook

    #815161

    In reply to: Calender View Types

    Josh
    Participant

    Hello standupmagazin,

    Thanks for reaching out to us!

    We aren’t able to offer specific customizations within support but hopefully I can get you pointed in the right direction with enough information to help you tackle the customizations you’re looking for.

    1. <span style=”line-height: 13px;”>This isn’t currently a feature of the plugin but can possibly be accomplished by creating a custom view for the plugin. We have an example repository that shows how to create an agenda view. You can use this, in conjunction with our default calendar view to help in creating the new custom view that you’re describing. A possible solution could be to create a  carousel where the content of the carousel are the different calendars. This could be a good one to use.</span>
    2. You’ll need to customize the javascript file for the “resources” -> “tribe-events-bar.js” to get the effect you’re looking for in the “View as” section. The best way to approach this would be to dequeue the plugin’s version of this file from within your theme’s functions.php file ( wp_dequeue_script( 'tribe-events-bar' )). Then, copy the original javascript file into your theme and enqueue it using <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" target="_blank">wp_enqueue_script</a>. Finally, you can create the dropdown on hover effect by changing the “click” on line 171 within that file to “hover”.

    Let me know if this helps.

    Thanks!

    #802168
    Josh
    Participant

    Hello henricocounty,

    Thanks for following up. I’m glad you were able to find a solution that works for now.

    It definitely sounds like it is a javascript issue that is at the root of the problem. Another option you could pursue is dequeueing different parts of the Bootstrap library to see if there is a specific script that is causing the conflict.

    I’m sorry I wasn’t able to give you a direct response however I hope this was able to point you in the right direction.

    Thanks!

    #758976
    Geoff
    Member

    Thanks for confirming the conflict, Marian!

    Man, it’s super weird that theme works fine with the core plugin but starts acting up when the pro version is activated on top of it. We try to support as many themes as possible but it looks like there’s something about this one that is causing the conflict.

    Have you tried reaching out to the theme author? They may have a better idea of what’s causing the conflict since I’m unfamiliar with this particular theme.

    I’ve seen something like this happen before when there’s a jQuery conflict, such as having it called twice. You could try using the wp_dequeue_script() function to remove scripts on this specific page to see if removing some of the theme’s scripts clears it up. Additionally, here is a list of all our scripts and their corresponding handles.

    You may also be able to overcome it by creating a new page template specifically for the calendar and pointing to it in Events > Settings > Display. However, that might just duplicate the issue rather than getting to the route cause of it since the conflict appears to be in the theme.

    Sorry I don’t have more concrete information for you, but does that help answer your question? Please let me know. 🙂

    Thanks!
    Geoff

    #704219

    In reply to: Deactivate AJAX

    Brian
    Member

    Hello,

    I can help you out with this. There is not setting to disable ajax, but you can use a WordPress function(wp_dequeue_script) to remove the ajax scripts.

    I wrote a quick function that does it on the month, list, and event views. If you need more then that, I suggest search for the scripts in the coding to find scripts with ajax in their name and remove them.

    Here is the link to the basic function that you can put in your theme’s functions.php:

    http://pastebin.com/TujLEBYi

    Let me know if that helps or you have trouble locating a script.

    Thanks

    #692449
    Barry
    Member

    We’ll certainly consider it, but the best place for feature requests is our UserVoice page 🙂

    This file will be overwritten when the Calendar Pro plugin gets updated! I’m just starting with WordPress so I don’t know how to make this solution future-proof. Maybe Barry can help with that?

    I can certainly point you in the right direction, possibly, which would be looking at options to facilitate this from your own script that loads after ours or, if that’s not possible, dequeue ours and enqueue your own custom version: there’s still a slight maintenance headache inherent in that approach but it’s slightly cleaner than hacking core code.

    At this point I will go ahead and close the thread – but thank you all for the comments and ideas (particularly halostribe for all that coding legwork 🙂 ).

    #669162
    Barry
    Member

    OK, I’m sorry we can’t do too much else at present. We are making some changes though that will make it a lot easier to dequeue our own Google Maps scripts.

    One thing that does come to mind, though, is that if you can obtain a snippet from the theme authors to dequeue their Google Maps API script then we can probably give you some tweaks that will apply it only to single event and venue pages – which would avoid impact on any other sections of your site 🙂

    This also makes sense from the point of view that The Events Calendar itself does not enqueue Google Maps on anything but its own pages so, in a sense, it is really your theme which is encroaching on The Events Calendar’s space rather than the other way round.

Viewing 15 results - 211 through 225 (of 274 total)