Posted: May 4, 2015 at 1:37 pm
|
Hello, 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 |
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. — |
|
|
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 |
|
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. |
|
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. |
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/ — |
|
|
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. |
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? — |
|
|
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: 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! |
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? — |
|
|
Hi Lorenzo, Here is what I got back from the theme author: ____________________________ http://support-rt.com/forums/topic/featured-image-option/ Best regards, /* $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 |
Hi, I’m unable to view these links: 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. — |
|
|
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: 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. : ) |
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? — |
|
|
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 |
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. — |
|
|
That would be fantastic, thank you for working on this. Gilda |
Hi, this was already released. Try updating and then try one of the page template settings via the event editor. Thanks — |
|
|
Hi Lorenzo, Shoot, I still get Default Template as the only Page Template option in the event editor… Gilda |
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 — |
|
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.