Support

Home Forums Event Espresso Premium How do I move the Register Now button (or whole block) to bottom of page?

How do I move the Register Now button (or whole block) to bottom of page?

Posted: August 26, 2015 at 7:58 am


Bill Pfeiffer

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.


Tony

  • Support Staff

August 26, 2015 at 12:54 pm

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.


Bill Pfeiffer

August 26, 2015 at 4:09 pm

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?

๐Ÿ™‚


Tony

  • Support Staff

August 27, 2015 at 5:28 am

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.


Bill Pfeiffer

August 27, 2015 at 11:40 am

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?


Lorenzo Orlando Caum

  • Support Staff

August 27, 2015 at 12:41 pm

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


Lorenzo


Bill Pfeiffer

August 31, 2015 at 2:04 pm

hi, we’d like

datetime > description > venue details > ticket selector

thank you.


Lorenzo Orlando Caum

  • Support Staff

September 1, 2015 at 9:59 am

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
Description
Venue details
Ticket selector


Lorenzo


Bill Pfeiffer

September 11, 2015 at 8:00 am

ok. we’re getting closer. how do i avoid having two register now buttons at the bottom?


Josh

  • Support Staff

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?

https://gist.github.com/

http://pastebin.com/


Bill Pfeiffer

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


Josh

  • Support Staff

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.


Bill Pfeiffer

September 11, 2015 at 1:33 pm

sorry, i misunderstood. that is here:

http://pastebin.com/AUUSjBBH


Lorenzo Orlando Caum

  • Support Staff

September 12, 2015 at 12:51 pm

Hi Bill, that could happen if you are using this suggestion:

https://eventespresso.com/topic/how-do-i-move-the-register-now-button-or-whole-block-to-bottom-of-page/#post-170240

…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!


Lorenzo


Bill Pfeiffer

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….


Josh

  • Support Staff

September 14, 2015 at 9:02 am

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.


Bill Pfeiffer

September 14, 2015 at 2:38 pm

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.


Lorenzo Orlando Caum

  • Support Staff

September 14, 2015 at 2:52 pm

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


Lorenzo


Bill Pfeiffer

September 18, 2015 at 3:52 pm

ok! that did it. thank you so much!


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 8:50 am

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


Lorenzo

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.

Event Espresso