Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    did you try something like this – https://www.ads-software.com/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

    Thread Starter Daniele

    (@lele_82)

    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…

    Thread Starter Daniele

    (@lele_82)

    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

    Thread Starter Daniele

    (@lele_82)

    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?

    Thread Starter Daniele

    (@lele_82)

    parent theme, inside the parent_theme/plugin/event-manager/templates folder

    Plugin Support angelo_nwl

    (@angelo_nwl)

    cpt template single-event.php should be located in your theme directory at wp-content/themes/Your Theme/single-event.php

    Thread Starter Daniele

    (@lele_82)

    i’d also tried this, but it doesn’t work…

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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.

    Thread Starter Daniele

    (@lele_82)

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘single-event.php page’ is closed to new replies.