Rearrange single event page

Home Forums Calendar Products Events Calendar PRO Rearrange single event page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #46604
    molitordesigns
    Participant

    My client wanted me to put buttons (buy tickets here) on the event list page (Tickets) linking to the single event pages so the bumbling masses wouldn’t be confused. I decided the easiest way for me to do this was in the event description. So I now have buttons, but the buttons also display on the single event page above the actual ticket purchasing button which could send the bumbling masses in to an infinite loop from which they might never return. So, is there anyway I can put the ticket purchasing option above the event description

    #46625
    Jonah
    Participant

    Hi molitordesigns,

    I’m not clear on what you’re trying to do or how you’ve done what’s already there. Can you give me some more specific examples?

    #46631
    molitordesigns
    Participant

    on this page ( http://southernprideinvitational.com/tickets/ ) the client wanted buttons linking to the individual event page. I did this by adding buttons to the description. The problem with this approach is that the same button appears on the individual event page above the actual wooticket purchasing option seen here ( http://southernprideinvitational.com/tickets/tate-stevens/ ) I am just wondering if there is a way I can rearrange some php real quick (PHP pre-novice skill level) and put the ticket purchasing field above the event description

    #46660
    Jonah
    Participant

    Oh I get it now. Sure. So what you would want to do is instead of putting the button in the description, put it in the actual list template file and then it will only display on the list and not the single events. To do this, make a copy of /wp-content/plugins/the-events-calendar/views/list.php and place in an ‘events’ folder in your theme. Then open up the file and you can put the button code wherever you want, but if you want it above the description, add it right before line 42 (make a space in the code where you can place your button code).

    Then you’ll need to remove the button from all the descriptions and you should be set!

    I hope that helps,
    – Jonah

    #46667
    molitordesigns
    Participant

    Im sure your suggestion is top notch, unfortunately you lost me when placing the list file in to my theme. The buttons I made were made using theme assets and each was created with its own href. I think there may be some confusion still as to what I am trying to accomplish. I created a screenshot with notes to better illustrate the bandage solution I am going for considering my pre-novice level status. Thanks so much for your help.
    http://southernprideinvitational.com/wp-content/uploads/2013/04/tibehelp.png

    #46672
    Jonah
    Participant

    Hi molitordesigns,

    No, I understand what you’r trying to do. By placing that file in an ‘events’ folder in your theme, it allows you to make changes to it that will be safe up update. It allows you to modify it and add whatever custom code you want to events in the event list. Which, this is where you want the button to appear and it will work because then the button will only show in the list and not in the single view page. You can actually also dynamically include the link to the event in the list.php file, thus removing the need to input this manually for each event. Here’s an example. Say your button code looks like this: http://snippi.com/s/z1an2sl

    Take that and put it in the list.php copy you made on line 42, but replace the href with this: http://snippi.com/s/d7x5x6f – this uses the tribe_get_event_link() function which automatically gets the link of the event.

    Try that and let me know how it goes.

    #46723
    molitordesigns
    Participant

    consider my mind officially blown. I followed the steps you outlined thinking \”there is no way this is going to work, how is wordpress going to know where to find the event folder and new document I placed?\” but BOOM! there it is working in all of its Voodoo glory. Thanks again for the help.

    #46772
    Jonah
    Participant

    You’re welcome molitordesigns, let us know if you need help with anything else!

    #978989
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Rearrange single event page’ is closed to new replies.