Posted: April 8, 2015 at 12:01 pm
I like the People addon. But it adds our instructor at the TOP of the content. I’d like it at the bottom. Is there a way to do this? THANKS! |
|
Hi Brandon, it should appear at the end by default. Are you using a code snippet that has adjusted the order of the elements on the single event page? — |
|
No, I don’t think so. Site is in development, not public yet. Here’s an example: redacted – Event Espresso support team – LOC |
|
Thanks, would it help if the event description was relocated above the ticket selector? — |
|
Hi Lorenzo. Yes, essentially we have four “blocks” that ideally we’d like to position as we see fit: Ticket, Dates/Times, People and Content/Description. Does EE4 allow us to position these as needed and if so, how do we do that? Brandon |
|
Sure, could you try this sample coding: https://gist.github.com/lorenzocaum/a33405557a2a065779ea It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
This is a great help, thanks!
I’m guessing that EED_Event_Single is wrong. What should be there? THANKS! |
|
|
Hi, I’m wondering if there is a conflict of some sort here. The thing is, if you had not modified the plugins code prior to installing the People addon, the people content should appear below the datetimes, not at the top. Now that you have added some code to move things around, it looks even clearer that there is something else at play here as the People content is remaining at the top. Can you try using a plugin called Theme Test Drive, to temporarily swap to another theme such as a default one like Twentytwelve or Twentyfifteen to see if that removes the top People content? If that makes no difference, can you temporarily deactivate all plugins except EE and EE People to see if that changes the layout? |
Good points and yes, I wonder if there’s a conflict. I’ve tried: We are using a theme from Themeforest called University. We’re changing it radically. It came with its own Events plugin, which turned out to be useless. But we like the look, so we’re modifying. And by the way: THANKS! I really appreciate the help. |
|
Hi Jim, Did you add the filter that I shared and what does it currently look like? — |
|
Yes. I’ll paste below. And here’s a link to show what it looks like (though it’s in a development site, so I’d appreciate if you’d redact it as you did before): redacted – Event Espresso support team – LOC
|
|
Hi Jim, It turns out the People add-on uses a different hook and the priority of 101 is too late. This is because the People add-on adds to the_content filter at a priority of 90. When you remove a filter in WordPress, it needs to match the priority of when it was added. Can you try this instead?
|
|
Aha, makes sense. And yes, that fixed it. |
|
Hello again Brandon, 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 ‘EE4 People Addon: how to move PERSON to end of single content’ 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.