Support

Home Forums Event Espresso Premium single event detail page problems

single event detail page problems

Posted: May 4, 2015 at 1:37 pm


Gilda Taffet

May 4, 2015 at 1:37 pm

Hello,
I have some problems going on with the single event detail pages (I am using EE 4.6.25 and WP4.2.1). Multiple breadcrumb and header areas are showing up on the page and the sidebar drops to the bottom of the page. Here is an example of how it looks: http://sitedev2015.soilborn.org/events/beg-home-gardener-spring-15/
I was able to hide some of the duplicated info using the css (see below) but I want to solve the issue of why the event content is appearing this way (looks like multiple content wrappers are being called?):
css to hide duplicated header content:
.espresso_events .content_block_background {display:none;}
.espresso_events .head_text {display:none;}

I have read all the articles I can find on templating and the EE logic system and have tried to implement with unsatisfactory results (I tried creating an espresso single event page template based on single.php but multiple headers still appeared when I implemented it. I have only very basic PHP knowledge.) Let me know if I need to apply for a support token to address these issues. Thanks for your help,

Gilda Taffet


Lorenzo Orlando Caum

  • Support Staff

May 4, 2015 at 3:51 pm

Hi, could you try this CSS?

.espresso_events .post-title-holder h1 { display:none; }
.espresso_events .row .head_text { display:none; }
section .content .espresso_events .breadcrumb { display:none; }

That should keep the top breadcrumbs and one of the titles.


Lorenzo


Gilda Taffet

May 4, 2015 at 4:15 pm

Hi Lorenzo, thanks for your quick response. : )

Unfortunately, your suggested css does the same thing that mine did except it leaves a much larger gap between the breadcrumbs and the title, the sidebar still falls below the content box… (see http://sitedev2015.soilborn.org/events/beg-home-gardener-spring-15/)

I would like to understand how to get the event posts to be able to be placed on a page template besides the default page template so I have more flexibility about what can put in the sidebar etc. What is the default page template that is auto-selected in the event setup page called and where is it located (I’m having a hard time figuring that out)?

I also have not had full success rearranging the order of the content in the form (I tried following various instructions to alter this file from the Arabica 2014 files provided: content-espresso_events.php but the result wasn’t pretty…)

Thanks for your help. Gilda


Dean

May 5, 2015 at 4:37 am

Hi Gilda,

https://wordpress.org/plugins/what-template-am-i-using/ this is a very useful plugin that can help you see what template the page you are viewing is currently using.

By default the single events will use the themes single.php if it is available.

The single.php relates to Posts, not Pages.

I’m not sure why this is happening with this particular theme, but the standard posts/pages have the sidebar within the “content_block_background” div, but on the events, they are in the “content_second_background” so something is not quite right. I haven’t seen this happen on other themes, for example if you temporarily swapped to a default theme such as twentytwelve it looks fine.


Gilda Taffet

May 5, 2015 at 10:20 am

What steps do do you recommend that I take to correct this display issue? (the sidebar area in this theme is super flexible and customizeable and works well in every other part of the site.) Do I need to create a variation of single.php with the sidebar in the correct div and make that available in the Page Template selection dropdown in the event setup area?

Also, which file is responsible for arranging the order of the post contents? I assume this file is what I would make a variation of to rearrange the order of how the event displays?

Is this something I can get more detailed direction for via the support token or do I need to work with the theme creator and/or hire a developer?

Thanks for your help.


Lorenzo Orlando Caum

  • Support Staff

May 5, 2015 at 10:41 am

Hi Gilda,

Lets try another line of CSS. Keep the existing CSS and add this one below it:

.single-espresso_events section .content_block_background {display: none;}

Next, what order are you wanting to change the content to? If you are trying to move the ticket selector down, then that can be done via a filter:

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/


Lorenzo


Gilda Taffet

May 5, 2015 at 11:15 am

Thanks Lorenzo, that extra line of CSS fixed the big gap between the breadcrumbs and the title. Sidebar is still falling to bottom of page though… Is that something that can be tweaked via CSS or, as Dean’s comment implies, does it require an edit to a template? If so, which template should we address?

I’ll also try the filter you gave me to re-locate the ticket selector as that is mainly what I want to do.


Lorenzo Orlando Caum

  • Support Staff

May 6, 2015 at 2:40 pm

Hi Gilda,

I’ve seen the sidebar drop when there is an unclosed html tag but I’m not sure if that is what is happening here. If you have used html in the event description area, could you switch to the text view via the event editor and check to see if there are any of those in there?

If there aren’t any, would you be able to provide a copy of your theme as a zip file for us to take a look at?


Lorenzo


Gilda Taffet

May 6, 2015 at 5:50 pm

Hi Lorenzo, these event test posts don’t have any <html> tags in the source/text view but a few headlines use <h3> tags that are all closed properly. Also, I’m curious: it looks like even if I add <html></html> or <p> tags in the source code of the event description, those tags get stripped out when I save the event… is this normal behavior?

Here is a link to download the rt18theme that I am using:
redacted – Event Espresso support team – LOC

The theme has a very flexible template and sidebar creator, so I am guessing that the extra customization that this theme allows to the sidebar and widget areas may be a reason why the single.php is “not normal”…? Thank you very much for your help!


Lorenzo Orlando Caum

  • Support Staff

May 7, 2015 at 12:02 pm

Thanks, I can see that the templates are managed via the WP dashboard so creating new templates in the theme folder won’t work as expected.

I also see that the theme has support for a custom post type called products. Could you ask the theme developer how to add template support for additional custom post types?


Lorenzo


Gilda Taffet

May 8, 2015 at 12:56 am

Hi Lorenzo,

Here is what I got back from the theme author:

____________________________
“Unfortunately the theme does not support custom post types.
We have a few threads on integrating the cpt ui which might be of help for you to get this working for event espresso. It explains how to enable the templates for cpt as well as the meta boxes and custom fields the theme uses.

http://support-rt.com/forums/topic/adding-templatefeatured-image-options-and-image-gallery-to-custom-post-types/

http://support-rt.com/forums/topic/featured-image-option/

Best regards,
Neo
Theme support
______________________
My note: I tried editing and placing the 2 files referenced in the first article into my child theme but nothing changed that I could tell. I tried using ‘espresso_events’ as the CPT type and also ‘events’ and ‘event’ (I was not sure what the EE post type is called…) Here is the line in the common_custom_field.php that I experimented with:

/*
Add all templates and default sidebars to the scope list
*/

$scope = array(‘products’,’portfolio’,’page’,’post’,’product’,’staff’,’espresso_events’,’events’,’event’);
__________________________

I also found this suggestion in the theme’s forum but I will need to know what the EE custom post type is called to try it):

“We don’t support the custom posttypes in the template builder. There is no code to call those types within the template builder, Maybe you can find a plugin that calls custom posttypes by shortcode and add that into a text module.

You can create a template and set that to the custom posttype. Within the template in a row set to sidebar layout you can call a sidebar. Then set that template to the custom post type single post in the template selector of that post.”

____________________________

My note: If the above info is not helpful: The sidebar is actually showing up on the single event page (this is good) but it is fallen to the bottom of the page under the event info (not so good…)… any ideas about how to get that back into place? That’s mainly what I need as a first step.

Thanks for your help!

Gilda


Lorenzo Orlando Caum

  • Support Staff

May 8, 2015 at 6:42 am

Hi, I’m unable to view these links:

http://support-rt.com/forums/topic/adding-templatefeatured-image-options-and-image-gallery-to-custom-post-types/

http://support-rt.com/forums/topic/featured-image-option/

Do they work for you?

Also, the sidebar appears at the bottom as the page is defaulting to the full-width option. This is what we are trying to change by setting up templates for custom post types but that does not appear to be supported at this time.


Lorenzo


Gilda Taffet

May 8, 2015 at 11:07 am

Hi Lorenzo,

The articles are in a password-protected forum area. I have created PDFs of the 2 articles RT Theme tech support referenced and put them here for you:
https://www.dropbox.com/sh/gyv2mhrne196t2s/AABbASOj56DresexR4e8xI6Va?dl=0

If you want to go into the forum as me, I can give you my access credentials (if we make this support conversation un-public. : )


Lorenzo Orlando Caum

  • Support Staff

May 11, 2015 at 7:43 am

Thank you. I was able to view the support posts but they involve editing the core plugin which means when you update the theme, your edits would be lost. There is also a possibility that those tutorials are out of date.

I have another idea on how this could be done. Some theme frameworks have filters to force a certain layout on a page.

Here is an example for the Genesis theme:

https://wpbeaches.com/force-custom-post-type-certain-layout-genesis-theme-wordpress/

Could you ask your theme developer if anything similar is available?


Lorenzo


Gilda Taffet

May 11, 2015 at 10:05 pm

Hi Lorenzo,

I received a reply from the RT Theme 18 developer:

neo wrote:

Hi

We unfortunately we don’t have filtering. The code in those threads is not out of date. The line numbers in those files might have changed. That is all that could have happened. Filtering has been added on rt19.

The theme follows the wordpress hierachy for categories and taxonomies. Just it does not work with normal template structures. By following above threads it should be possible to do. Its not that much code that should be added (even on theme updates) to get a cpt working.

Best regards, Neo


Lorenzo Orlando Caum

  • Support Staff

May 12, 2015 at 7:59 am

Alright, thanks for checking into it. I have one idea on how this can work. We’ve restored the page template option which appears in the event editor.

We are aiming for a maintenance release later today and that should allow you to select existing templates that have been created via the rt18theme.


Lorenzo


Gilda Taffet

May 14, 2015 at 11:13 am

That would be fantastic, thank you for working on this. Gilda


Lorenzo Orlando Caum

  • Support Staff

May 14, 2015 at 11:15 am

Hi, this was already released. Try updating and then try one of the page template settings via the event editor.

Thanks


Lorenzo


Gilda Taffet

May 14, 2015 at 11:25 am

Hi Lorenzo,

Shoot, I still get Default Template as the only Page Template option in the event editor… Gilda


Lorenzo Orlando Caum

  • Support Staff

May 14, 2015 at 1:02 pm

Hi Gilda, I have a solution that works on my end:

http://cl.ly/image/2i0I2N1R3e3H

I’ve emailed you privately with more information.

Thanks


Lorenzo

The support post ‘single event detail page problems’ 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