Title: editing php file?
Last modified: August 30, 2016

---

# editing php file?

 *  Resolved [stug2013](https://wordpress.org/support/users/stug2013/)
 * (@stug2013)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/editing-php-file-1/)
 * Hi, I have created a custom post type called content-only because I want to display
   a post without the header and footer in a lightbox. I can get the post in the
   lightbox but what I now need to do I think is to edit the php file that refers
   to the custom post type if there is one. Any idea where I will find it, I have
   looked in the child theme folder but cannot see anything. Or do I have to go 
   about things differently.
    Thanks
 * [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 10 months ago](https://wordpress.org/support/topic/editing-php-file-1/#post-6412273)
 * Our plugin does not provide any template files that interact with the theme or
   display things on the frontend, so checking the template hierarchy is going to
   be your best bet for figuring out details here.
 * [https://developer.wordpress.org/themes/basics/template-hierarchy/](https://developer.wordpress.org/themes/basics/template-hierarchy/)
 *  Thread Starter [stug2013](https://wordpress.org/support/users/stug2013/)
 * (@stug2013)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/editing-php-file-1/#post-6412276)
 * ok thanks
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 10 months ago](https://wordpress.org/support/topic/editing-php-file-1/#post-6412304)
 * Welcome

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

The topic ‘editing php file?’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/editing-php-file-1/#post-6412304)
 * Status: resolved