Support

Home Forums Event Espresso Premium Sponsors Section Placement

Sponsors Section Placement

Posted: January 12, 2016 at 6:43 am


Alan Coyne

January 12, 2016 at 6:43 am

Hi,
I’m using the Sponsors section plugin and want to change the position where its displayed on the page. I want it displayed last.
I’ve tried various changes to function but none have worked.
add_action( ‘AHEE_event_details_after_the_content’, ‘ee_event_sponsor_area’ );

I want to change the re-arrange template display order in admin (Desc, TS, D&T, V) followed by Sponsors. When I do this the sponsors info is place after description. I want it after Venue.

Is this possible?

Thanks

Alan


Tony

  • Support Staff

January 12, 2016 at 7:03 am

Hi Alan,

Are you using the latest version of both Event Espresso (4.8.29) core and the People Add-on (1.0.4)?

Do you have any functions for changing the order active on the site? When using the custom ordering within the admin if you also have custom functions active it can cause problems.


Alan Coyne

January 13, 2016 at 2:24 am

Hi tony,

EE Version 4.8.26.p
I’m not using the People Add On. I’m using https://eventespresso.com/wiki/add-sponsors-section-events-using-advanced-custom-fields/

I have no functions for changing order.

Thanks

Alan


Tony

  • Support Staff

January 13, 2016 at 4:07 am

Ahh ok, sorry I should have realized with:

add_action( 'AHEE_event_details_after_the_content', 'ee_event_sponsor_area' );

So the problem is that the hook you are using currently is ‘AHEE_event_details_after_the_content’, that is always run directly after the event description.

Try changing that to:

add_action( 'AHEE_event_details_after_venue_details', 'ee_event_sponsor_area' );

Which then hooks into the venue template and adds the content after that.


Alan Coyne

January 13, 2016 at 5:11 am

Perfect, Thanks Tony

The support post ‘Sponsors Section Placement’ 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