joecalibre

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Custom Single Evenst Page #937885
    joecalibre
    Participant

    Hi. Yes, in Events > Settings > Display Tab, we do have the Skeleton Stylesheet selected.

    It sounds like the plan to dequeue the css scripts is the right way to play it. As far as I can tell, stylesheets are registered and enqueued in plugins/the-events-calendar/lib/tribe-template-factory.class.php.

    So my process would be, in my theme folder, I have a generic functions.php file, I could dequeue the extra css scripts there with something like the following code:

    // DO NOT ADD SCRIPTS FOR SINGLE EVENT PAGES
    add_action(‘wp_print_scripts’,’dequeue_scripts’);
    function dequeue_scripts() {
    wp_dequeue_script( ‘script_handler_1’ ); // use handler name
    wp_dequeue_script( ‘script_handler_2’ );
    }

    But that leaves me with 2 challenges, still.

    1. I don’t know the names of the css stylesheet handlers. Although I suppose I can find most of them in the class.php file that I indicated.
    2. I suppose we want to use the stylesheets for OTHER event pages; so how do I dequeue these scripts ONLY for Single Events? I don’t quite know how to sort out that logic?

    Thanks again for your attention and insight.

    in reply to: Roles and Capabilities for Events > Re-Order #906833
    joecalibre
    Participant

    Hi Brook. Thank you. Yes, you are quite right. This capability came from another plugin, namely Post Types Order v 1.7.4 here: http://www.nsp-code.com/. I incorrectly assumed it was packaged with The Event Calendar mostly because we find it very useful. Meanwhile, I will follow up with that plugin how to grant this capability. Thank you.

    in reply to: mini calendar links not functioning #201411
    joecalibre
    Participant

    So:
    1. Resolved: I have got my mini-calendar links working.
    2. Resolved: I believe I am able to limit the mini-calendar to only show list-info (under the calendar) for only events for TODAY by editing pro/widgets/mini-calendar/single-event.php and putting most of that returned content inside the conditional if ($postDate == $today)
    3. The last bit I am trying to sort out is getting a list in day view – so all of the events for one day – when a user clicks a date in the mini-calendar. No doubt I’m doing this the hard way. I created a custom template for my events. I know I either show default content which I have so far already managed or I can filter by receiving the mini-calendar link, namely the variable data-day. I think I’m on my way to solving it all – even if I am doing it the hard way – if I can sort out how to receive and use that AJAX variable data-day. Is there a function that returns that variable? I searched Google and these forums but could not find any tips (likely because I’m doing all of this the hard way). So, yes, please, my last hurdle: how do I collect/receive/use the mini-calendar link variable, namely data-day? Or is receiving and using an AJAX variable to generate/regenerate template content more trouble than I want? Thanks.

    in reply to: mini calendar links not functioning #199696
    joecalibre
    Participant

    I’m scratching my head on this.
    1. I want to restrict the listed events under the mini-calendar for TODAY only. It looks like I have to add a filter to my template overwrite file at pro/widgets/mini-calndar/list.php which is the loop that lists those events, I think. But even when I go look at http://docs.tri.be/Events-Calendar-PRO/ I can’t sort out a proper limit by today filter or where to put it. Although I reckon I’d put it just before the while have posts line whatever that date filter line should look like.
    2. The other part is how to get the dates in the mini-calendar to link to a page: day view with an events list limited to that date. It looks like public/template-tags/widgets.php produces the individual day links (line 89) but I don’t know where to start to build a single day view with an event list. Suggestions?

    in reply to: Widget Arrows Won't Work #194948
    joecalibre
    Participant

    Hey Nathan. I had this problem too. I can’t be sure it’s the problem but here’s how I solved it. If the month nav links in your Events Calendar Mini Pro Calendar are NOT working, it’s likely a problem registering the space for the widget. See this thread for more details: https://theeventscalendar.com/support/forums/topic/calendar-widget-issue/#post-109153. Specifically something like this should fix your month nav arrows in the mini calendar: ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</div>’. That’s in your functions.php file while registering sidebars.

    in reply to: mini calendar links not functioning #194941
    joecalibre
    Participant

    Ok. So I was being lazy and didn’t check the forums. This seems like an important issue for anybody using a non-standard theme. I am using ThemeForest’s inovado. But more to the point, I registered my own sidebar function and I didn’t do it entirely correctly. If the month nav links in your Events Calendar Mini Pro Calendar are NOT working, it’s likely a problem registering the space for the widget. See this thread for more details: https://theeventscalendar.com/support/forums/topic/calendar-widget-issue/#post-109153. Specifically something like this should fix your month nav arrows in the mini calendar: ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</div>’. That’s in your functions.php file while registering sidebars.

    Meanwhile, per my original request: where can I look to turn mini calendar day links to a new page with an Event List for all events for that day?

Viewing 6 posts - 1 through 6 (of 6 total)