Title: Single-Event.php Question
Last modified: September 1, 2016

---

# Single-Event.php Question

 *  Resolved [ryanngreen](https://wordpress.org/support/users/ryanngreen/)
 * (@ryanngreen)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/single-eventphp-question/)
 * The template for my single-event.php is pulling code for a header image from 
   the parent calendar page. I don’t want to be pulling anything but the navigation
   bar from the parent page. Can anyone help me and let me know how to prevent this
   from happening?
 * Thanks.
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Caroline](https://wordpress.org/support/users/tribecari/)
 * (@tribecari)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463156)
 * Hi there!
 * Thanks for getting in touch–sorry to hear you’re having trouble here!
 * Are you using the default single event template without modifications, or have
   you applied any customizations to that template? If you’re using our stock templates,
   you might consider taking a look at our [Themer’s Guide](https://theeventscalendar.com/knowledgebase/themers-guide/),
   which provides plenty of information on modifying our templates and is likely
   to be the quickest route to getting your pages looking just the way you want 
   them. 🙂
 * Let us know if you should continue to have any issues, and we’ll see what we 
   can do to help!
 *  Thread Starter [ryanngreen](https://wordpress.org/support/users/ryanngreen/)
 * (@ryanngreen)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463245)
 * Thank you for getting back to me. I have been using a customized template using
   the instructions from the Themer’s Guide. I am working locally, so unfortunately
   I can’t send you a link directly to the site for you to see, but I have linked
   a couple screenshots to better explain what problem I am having. In the first
   image, there is an element at the top with “Calendar” which is correct. This 
   is using the template file “page_calendar.php”. In the second image, the element
   at the top with “Calendar” remains, which I don’t want. It is using the “[my-
   theme]>tribe-events>single-event.php” file. I don’t see anything in the code 
   that is causing it to keep this element, so I am assuming it is something with
   the file heirarchy. What can I do so that “single-page.php” does not keep the
   top element from the calendar page?
 * [https://drive.google.com/open?id=0B6-Q_wickW4IRHh3eldJbkhCblk](https://drive.google.com/open?id=0B6-Q_wickW4IRHh3eldJbkhCblk)
 * [https://drive.google.com/open?id=0B6-Q_wickW4ITk1xcTBDdjFueWs](https://drive.google.com/open?id=0B6-Q_wickW4ITk1xcTBDdjFueWs)
 *  [Caroline](https://wordpress.org/support/users/tribecari/)
 * (@tribecari)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463303)
 * Hi again!
 * Thanks for providing some images and a bit more context for your issue! Unfortunately,
   having your site install on a local server does make troubleshooting a bit more
   challenging, but I’ll do my best to help out here! 🙂
 * If you’ve been able to isolate where the code for your header image is originating(
   perhaps in your **header.php** file?), you can enclose that portion of code in
   an `if` statement to ensure that it only displays on the main calendar page. 
   Here’s some code you can try:
 *     ```
       if(tribe_is_month() && !is_tax()) {
   
            [header image code here]
   
       }
       ```
   
 * This can also be applied anywhere else in your template files where you’d like
   to designate content for your main calendar page only.
 * I hope that helps! Let me know if you should have questions or concerns as you
   go!
 *  Thread Starter [ryanngreen](https://wordpress.org/support/users/ryanngreen/)
 * (@ryanngreen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463306)
 * That works perfectly! It’s exactly what I needed. Thank you!
 *  [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463320)
 * Hey glad to see the issue is now resolved 🙂
 * I’m marking this topic as resolved, if you need help with anything else please
   create a new thread and we will be happy to assist you.
 * Cheers and happy Friday!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Single-Event.php Question’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [parent](https://wordpress.org/support/topic-tag/parent/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 5 replies
 * 3 participants
 * Last reply from: [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/single-eventphp-question/#post-7463320)
 * Status: resolved