link event to url

Home Forums Calendar Products Events Calendar PRO link event to url

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #60176
    Barry
    Member

    Hi Nini – it looks like your override for month view is in the correct place, so I’m not sure why that isn’t working.

    For the mini-calendar widget you will need to move it from …/pro/widgets/ to just …/widgets/ (I appreciate that isn’t too clear in the Themer’s Guide and we’re just discussing that within the team).

    Re the month view, can you share what’s currently in the override and let me know if it is still in place? Perhaps you could also change (from within the month/single-event.php template):

    <h3 class="tribe-events-month-event-title summary">

    To:

    <h3 class="tribe-events-month-event-title summary test">

    And then I could inspect to see if that extra .test class is present in the output.

    #60216
    Nini
    Participant

    actually – here is what is in my single-event.php file in the month folder

    ID}-{$day[‘daynum’]}”;
    $start = tribe_get_start_date( $post, FALSE, ‘U’ );
    $end = tribe_get_end_date( $post, FALSE, ‘U’ );

    ?>

    <div id="tribe-events-event-” class=””>
    <a href="” class=”url”>
    <div id="tribe-events-tooltip-” class=”tribe-events-tooltip”>


    #60232
    Barry
    Member

    Hi Nini. Unfortunately the forum has a bad habit of stripping out bits and pieces of code – would you be able to share that as a Gist or using Pastebin (and drop the link in here)? Thanks – and sorry for the inconvenience.

    #60278
    Nini
    Participant

    you bet – here is a link to the mini calendar single-event.php

    http://pastebin.com/xR0M2DaV

    #60280
    Nini
    Participant

    and here is the month single-event.php

    http://pastebin.com/vJjByJfT

    #60286
    Nini
    Participant

    Looks like the mini calendar widget works now that I moved it out of the /pro folder

    but not the calendar view

    thanks for the tip on removing it from the /pro folder
    n

    #60298
    Barry
    Member

    Hi Nini – so I could totally be missing something here – but what is the difference between your custom month/single-event.php and the original?

    What I mean is – if they are indeed the same, how are you establishing that the override is not being used?

    #60390
    Nini
    Participant

    thanks Barry – I implemented the change that you supplied in your ‘answer’ above

    i replaced
    tribe_event_link( $post )
    with
    echo tribe_get_unslashed_event_link()

    I don’t think you should need to pass in the $post variable in these circumstances, but let me know if that doesn’t work for you.

    #60395
    Nini
    Participant

    ahhhhhhh – you are absolutely right – I didn’t make the change in that file

    I just did and it worked – so sorry for the hiccup – it works now

    thank you so much!!

    #60400
    Barry
    Member

    Hi Nini,

    Just to clarify – the problem as I understand it is that your custom month/single-event.php template isn’t being loaded (though you did find changing the core plugin templates directly worked – which of course we want to avoid 🙂 ).

    You also shared the code for your custom override – http://pastebin.com/vJjByJfT – but I don’t see anything in this that is different from the original (there is no call to tribe_get_unslashed_event_link() in there for instance that I can see).

    Based on what you’ve told me so far it looks like your override is in the correct directory – but that it is identical to the original (so you would see no difference). Does that make more sense?

    #60402
    Barry
    Member

    Ah ok, looks like we posted at the same time there 🙂

    So you’re all good on this front now?

    #60412
    Nini
    Participant

    Yes – Thank you Barry!

    #60416
    Barry
    Member

    Great stuff, hope all else goes smoothly with the project – but of course please don’t hesitate to create new threads if you need further assistance.

    #980112
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 14 posts - 16 through 29 (of 29 total)
  • The topic ‘link event to url’ is closed to new replies.