Jonah

Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 4,001 total)
  • Author
    Posts
  • in reply to: Events RSS #11951
    Jonah
    Participant

    Hi Steve,

    The Events Calendar uses the default feed templates in WordPress so you would need to modify these according to your needs. You can find information on how to do so here: http://codex.wordpress.org/Customizing_Feeds

    Regards,
    Jonah

    in reply to: Modifying tribe_meta_event_cats() output #11906
    Jonah
    Participant

    Awesome, glad that worked!

    in reply to: Gridview Previous and Next Months Display Issues #11897
    Jonah
    Participant

    Hi Esteban,

    We’re looking into it.

    Thanks,
    Jonah

    in reply to: Gridview Previous and Next Months Display Issues #11895
    Jonah
    Participant

    Hi Esteban,

    Have you tried reverting your theme back to Twenty Eleven? There could be a conflict with your theme. What theme are you using?

    Regards,
    Jonah

    in reply to: Event calendar 2.0 not available but 1.6.5 on WP #11893
    Jonah
    Participant

    Hi Joe,

    Sorry about the run around. You were right all along, you need to pass in the post id but you can’t with the get_terms function so I used wp_get_post_terms instead:

    http://pastebin.com/3QX6B9MR

    Let me know whether or not that works for you.

    Regards,
    Jonah

    in reply to: Event calendar 2.0 not available but 1.6.5 on WP #11854
    Jonah
    Participant

    Wait, disregard that last bit of code. This should work:

    [php]
    $args = array( ‘orderby’ => ‘slug’ );
    $terms = get_terms($tribe_ecp->get_event_taxonomy(), $args);
    [/php]

    in reply to: Modifying tribe_meta_event_cats() output #11853
    Jonah
    Participant

    No I don’ think so. What about if you use this:


    $args = array( 'orderby' => 'slug' );
    $terms = get_terms('sp_events_cat', $args);

    I’m not seeing the rest of my categories in the list and actually get_terms doesn’t get categories, it gets taxonomy terms… By putting ‘sp_events_cat’ as the first parameter this should tell get_terms to only get terms from that tax.

    in reply to: Modifying tribe_meta_event_cats() output #11849
    Jonah
    Participant

    Try changing the $args variable to:


    $args = array( 'taxomomy'=>'sp_events_cat','orderby' => 'slug' );

    in reply to: Modifying tribe_meta_event_cats() output #11845
    Jonah
    Participant
    in reply to: Modifying tribe_meta_event_cats() output #11842
    Jonah
    Participant

    Hi Joe,

    To modify the actual links you’ll have to change the tribe_meta_event_cats function to use get_terms instead of the_terms and modify the output accordingly: http://codex.wordpress.org/Function_Reference/get_terms

    Again, by modifying the core code your changes will be wiped out when you update unless you keep a catalog of your core changes and reintroduce after updating.

    You might try modifying the links via jQuery instead for now although it would be difficult to dynamically pull in the category info for each link.

    Regards,
    Jonah

    in reply to: querying future post status #11841
    Jonah
    Participant

    Hi John,

    You can adjust the query by adding the post_status paramter like so:


    $posts = tribe_get_events( array('eventDisplay'=>'upcoming', 'posts_per_page'=>-1, 'post_status'=>array('publish','future')));

    In fact you can use all of the parameters available for WP_Query as referenced here: http://codex.wordpress.org/Class_Reference/WP_Query

    I hope that’s what you need but let me know if you need anything else.

    Regards,
    Jonah

    in reply to: Tooltip on click? #11698
    Jonah
    Participant

    Hi Joe,

    Alright I’ve got the solution for you: https://gist.github.com/ab6f357e4a0508056ccc

    You’ll need to put the PHP example_enqueue_scripts function in functions.php and then in your template directory create an ‘js’ folder with an events.js file with the new jQuery script.

    That should do it for you.

    – Jonah

    in reply to: Modifying tribe_meta_event_cats() output #11686
    Jonah
    Participant

    Hi Joe,

    Unfortunately this is not possible without modifying the core code at this time. We are looking into things like this to make everything more editable and will take it into consideration.

    If you want to modify the core code (your changes will be overwritten the next time you update) you will want to modify /plugins/the-events-calendar/public/template-tags/general.php – line 102.

    Regards,
    Jonah

    in reply to: querying future post status #11685
    Jonah
    Participant

    Hi John,

    I’m still not clear on what you’re trying to do. I understand that a future dated post will not display by default, is that the issue you’re having? You need to display the future events?

    Thanks,
    Jonah

    in reply to: Mini calendar pop up size #11682
    Jonah
    Participant

    Hi Rona,

    The short answer to your question is yes. You can style the widget from any CSS file you want including the custom.css file in Thesis. Basically what it comes down to is specificity which I would highly recommend reading up on to get a little more educated on what it means. Here is one good article, but there’s plenty of others: http://css-tricks.com/855-specifics-on-css-specificity/

    Basically, CSS rules are applied first by order and then by score based on selectors used to determine what is applied. The score is determined by specificity.

    So for example, CSS placed inline in markup like:


    < a href="#" style="font-size: 16px;" >My Link< /a >

    Has the highest specificity and will trump any other CSS referenced for this link unless you use the overriding !important rule at the end of your CSS declaration.

    So, what I’m try to explain (and maybe not doing the best job of it) is that even though you have all the default styles set by the plugin, you can easily override any of these in your own stylesheet by taking advantage of the specificity scoring.

    So let’s take an actual example from the events.css stylesheet:

    From line 253 about:

    .tribe-events-calendar .tribe-events-tooltip {
    border:1px solid #666;
    position:absolute;
    z-index:1001;
    bottom:30px;
    left:3px;
    width:320px;
    background-color:#f9f9f9;
    color:#333;
    line-height:1.4;
    }

    So say you wanted to use a different background color and apply it in your own stylesheet without messing with events.css

    By the rules of specificity, ID selectors score higher than class selectors so you could simply prefix the same declaration with an ID of an element further up the page, like a container or wrapper or some sorts like so:

    #wrapper .tribe-events-calendar .tribe-events-tooltip {
    background-color:red;
    }

    By just placing an ID selector before the two classes, the specificity rules will score this declaration higher and make the background red.

    I hope that helps, but let us know if you have any other questions.

    Regards,
    Jonah

Viewing 15 posts - 3,931 through 3,945 (of 4,001 total)