Posted: August 26, 2015 at 7:58 am
|
Hi, I would like to move the registration button (or perhaps the whole ticket block) to the bottom of my event description. there’s another location detail block there… the two could swap, if that was easy. I found these suggestions but suspect things have changed in the code as I can’t find the code described in the files I have (current version). thanks. |
Hi Bill, That thread is for EE4, looks like you are using EE4. So you want to move the ticket selector to the bottom of the page content, is that correct? If so you can use the function available here: https://gist.github.com/joshfeck/1151c89082ccb5c0b478 You can either add that to your themes functions.php file, or better yet add it to a Site Specific Plugin. |
|
|
great, thank you, that worked beautifully. is there a similar function to move the location details block from the bottom to the location where the register now button used to be? ๐ |
Sure, it’s the same function just moving additional details. Replace the function from above with this one: https://gist.github.com/Pebblo/7345fd780f28a15dc12c That uses Description -> Venue Details -> Tickets Selector -> Datetimes. |
|
|
hmm… here’s how it came out: http://billpfeiffer.org/events/vision-quest/ so i’d like venue details at the top of the page where the ticket selector used to be. also, do you see Event Phone? why is that above the description? |
Hi Bill, event phone is set through the event editor so it is part of the event description. Are you wanting to change this order: Description -> Venue Details -> Tickets Selector -> Datetimes …to this? Venue Details -> Description -> Tickets Selector -> Datetimes — |
|
|
hi, we’d like datetime > description > venue details > ticket selector thank you. |
Hi Bill, follow this guide: https://gist.github.com/lorenzocaum/a33405557a2a065779ea#gistcomment-1379311 In step 1, use this file instead to get that specific order: http://cl.ly/code/1p02061H2z1p/download/content-espresso_events.php Once both files are in place, then the order on the single events page will change to: Datetimes — |
|
|
ok. we’re getting closer. how do i avoid having two register now buttons at the bottom? |
September 11, 2015 at 12:02 pm Hi Bill, In order to answer your question, it will help to be able to see a copy of the single-espresso_events.php file. Can you copy its contents to a github gist or into a pastebin and share a link here? |
|
|
September 11, 2015 at 12:07 pm i used the file lorenzo pointed me to http://cl.ly/code/1p02061H2z1p/download/content-espresso_events.php |
September 11, 2015 at 12:51 pm Did you set up a single-espresso_events.php file that calls the content-espresso_events.php template part? If so, that’s the file we need to see. |
|
|
sorry, i misunderstood. that is here: |
September 12, 2015 at 12:51 pm Hi Bill, that could happen if you are using this suggestion: …with the one that I shared. If you have existing coding to reposition content in your child theme’s functions.php file, then go ahead and remove it. With that solution, the filters are repositioning the content. With the solution that I shared, the template file itself has already had the content rearranged for you. Hope that helps! — |
|
|
September 13, 2015 at 11:14 am aha! thank you! you guys are great. ๐ now i just have to figure out how ‘event phone’ got up there…. |
Hi Bill, The event phone information gets displayed if you input a phone number in the Event Phone Number field in the event editor. You’ll find the field in the Event Registrations Options box. |
|
|
yes, we like having the phone number, just not at the very top of the page. i can’t seem to find where to move that though. |
Hi Bill, I see what you are referring to. The event phone number is set on an event basis and appears at the top of the event description area. The current position is correct as you have datetimes, event description, venue information, and ticket selector. Try moving that phone number from the event editor (copy it, then delete the phone number and save changes to event) over to the venue that is assigned to this event through the venue editor: http://cl.ly/image/3M3y0L1M390A –> http://cl.ly/image/3S1i2z0X0b3M — |
|
|
ok! that did it. thank you so much! |
Hello again Bill, As of Event Espresso 4.8.21, there is a custom display re-order option available in the WordPress dashboard. Backup your WordPress and update your software https://eventespresso.com/wiki/how-to-back-up-your-site/ You can see the change log for Event Espresso 4 here: https://eventespresso.com/wiki/ee4-changelog/ Remove existing filters for adjusting the order If you have used some of the suggested filters to adjust the order of your event elements, then you’ll want to first remove those from your website and they may have been added to your child theme’s functions.php file or a site specific plugin. Set a custom order through the Templates screen Afterwards, go to your WP dashboard (WP-admin) –> Event Espresso –> Events –> Templates. The Use Custom Display Order options in the Templates screen can be used to reorder the events elements on the single event page as well as the events listing page. Again, be sure that any of the filters for adjusting the order have been removed from your site specific plugin or your child theme’s functions.php file before turning on the template reorder option. Otherwise, you may see duplicate content. Thanks — |
|
The support post ‘How do I move the Register Now button (or whole block) to bottom of page?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.