hi,
did you try something like this – http://ww.wp.xz.cn/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=22
Or
try to re-copy your theme single.php and then rename it to single-event.php
i tried to re-copy single.php to single-event.php and modified as i wish but it doesn’t work… it seems like doesn’t exists…
i also need to know how could i check if the page is an event… like the function is_page()
Hiya!
Where did you create the single-event.php page? Was this in your active theme, or did you first create a child theme?
Can you insert a HTML comment (<!– comment –>) to double check if your new template is being used? If not, you’ll first need to check the correct theme is active, and that you’re viewing an events page. A link would help us to look at this with you.
To check whether you are looking at an event you can do this;
if ('event' == get_post_type($post->ID)){
// It's an event
}
Thanks,
Phil
The site link is this
i had tried to delete all code, but it still not working.
For my scope, i have solved the problem with the em_is_event_page();… obviously the issue behavior still remain…
Where is your single-event.php file? In a child or parent theme?
parent theme, inside the parent_theme/plugin/event-manager/templates folder
cpt template single-event.php should be located in your theme directory at wp-content/themes/Your Theme/single-event.php
i’d also tried this, but it doesn’t work…
are you sure single-event.php isn’t being used at all?
EM will let that take over if it exists. Maybe worth trying to put it in a child theme if you have one, although it should work on either one.
I’m sure to have put the single-event.php on the main theme and optimize it …
I don’t know, i’ll retry again and i’ll give you an answer.
Thanks for know.