Support

Home Forums Event Espresso Premium WP Theme & Sidebar problem (EE4)

WP Theme & Sidebar problem (EE4)

Posted: July 22, 2014 at 11:21 pm

Viewing 3 reply threads


scaldwell

July 22, 2014 at 11:21 pm

I’m not 100% sure what my problem is (ha!). I need to be able to add several sidebar widgets to the event pages on my site – but I don’t know where to add them. (and here’s where my understanding gets foggy) Are Events a type of “Custom Post Type” – because my theme doesn’t really support adding widgets to the sidebars of pages displaying ‘out of scope’ content… I’ve been given a link/how to by the theme developers. This might help illustrate what I’m confused about:

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

Can someone help me get my head around this? I can see from using “what the file” that the event pages are using the single.php page, in addition to two ‘template parts’ – but I don’t think I can mess with the single.php page… ok, I’m going to stop talking now because I don’t know what I’m saying…

Thank you!


Dean

July 23, 2014 at 2:09 am

Hi,

In EE4, posts are indeed Custom Post Types. As such if you go to /events/ you’re seeing an Archive page.

As such the plugin will generally use the settings for standard posts.

The link you provided is for members only so I cannot access it – if you can screenshot it or copy and paste, that would be helpful.

Are you trying to manually add sidebars or does the theme not provide options for this?

The single.php file actually controls all single pages, depending on how the theme has been structured. E.g. in the default theme twentyfourteen it will control, posts, pages, and post formats. In other themes it may only control posts.


scaldwell

July 23, 2014 at 8:29 am

Thanks Dean,
Here’s the instructions that were given to someone who was trying to do something similar –

You need to edit the wp-content/themes/rttheme18/rt-framework/admin/options/common_custom_fields.php manually and add the post type name manually for each custom posttype you create on line 52 of that file.
$scope = array(‘products’,’portfolio’,’page’,’post’,’product’,’staff’,’movie’);
1

$scope = array(‘products’,’portfolio’,’page’,’post’,’product’,’staff’,’movie’);

in that folder is also a file called post_custom_fields.php you can try to do the same trick on line 46 and every other “scope =>” (6x in total ) in that file for all the options in the custom posttype and thus your the images.

** Dean, does this make sense, and if so – what is the custom post type name (or does each event have it’s own name – ugg…)

Thanks for any help you can provide.
Shelly


Josh

  • Support Staff

July 23, 2014 at 1:28 pm

Hi Shelly,

The custom post type name for Event Espresso 4’s events is:

espresso_events

So an example of the code change you’d make to the theme would be:

$scope = array( 'products','portfolio','page','post','product','staff','movie','espresso_events' );
Viewing 3 reply threads

The support post ‘WP Theme & Sidebar problem (EE4)’ 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