Customize tribe_previous_event_link?

Home Forums Calendar Products Events Calendar PRO Customize tribe_previous_event_link?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32755
    Patti
    Participant

    Has anyone found a way to customize the output of the tribe_previous_event_link (or _next_) function other than adding text before or after it? I’ve been searching around for info, can’t find any.

    What I did for right now was to add double arrow left or right in the html before or after the function, but then what happens is if there is no event before or after, I end up with the lonely little arrow all by itself. If there were a way to customize that into the function so that the arrow would display with the text, only if an event existed, that would be great.

    Ex tribe_previous_event_link(‘The Text’, ‘Before Text’, ‘After Text’)

    Any ideas?

    #32769
    Jonah
    Participant

    Hi Patti,

    You can add text or characters before or after the link text by passing in the argument like so:

    tribe_previous_event_link('« %title%');

    or

    tribe_next_event_link('%title% »');

    …and you can put anything before or after %title% you want except for actual HTML.

    Does this help?

    – Jonah

    #32770
    Jonah
    Participant

    Sorry, to get the arrows above you would use « or »

    #32771
    Jonah
    Participant

    Argh, it keeps removing my code. Here you go: http://snippi.com/s/81agcuj

    Also, here’s a character reference page for more entities you can use: http://www.w3schools.com/tags/ref_entities.asp

    #32772
    Patti
    Participant

    ARGH! Ahoy! Shiver me timbers & thank you very much! 😉

    #32773
    Jonah
    Participant

    You’re welcome Patti, let us know if you need anything else!

    – Jonah

    #978625
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Customize tribe_previous_event_link?’ is closed to new replies.