• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Editing PHP files without changing the parent files

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Editing PHP files without changing the parent files

This topic is: not resolved

Tagged: child theme, parent

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 6 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 4, 2013 at 10:34 am #76968
    pinar
    Member

    Hi,

    I have the Minimum Pro as the child theme and I want to edit the php files and add html code. I know I shouldn't touch the parent Genesis files but how can I edit files like footer.php, header.php etc.? So far what I did was create a footer.php file in the Minimum Pro theme folder and I added this code at the top:

    <?php
    Theme Name: Minimum Pro Theme
    Theme URI: http://my.studiopress.com/themes/minimum/

    Template: genesis
    Template Version: 2.0

    License: GPL-2.0+
    License URI: http://www.opensource.org/licenses/gpl-license.php
    ?>

    I didn't touch the original footer.php in the Genesis folder. Am I doing this right?

    December 4, 2013 at 10:43 am #76970
    Brad Dalton
    Participant

    You can normally use hooks and filters to do this depending on what you want to do which is?


    Tutorials for StudioPress Themes.

    December 4, 2013 at 10:57 am #76977
    pinar
    Member

    Which is adding text, pictures and links.

    December 4, 2013 at 11:07 am #76979
    Brad Dalton
    Participant

    Link to your site please.

    You can simply use the footer widgets and add the HTML for your content into a text widget in that area.

    Otherwise, you can easily create new widgets in any hook position. Please advise which hook position you have in mind. Thanks


    Tutorials for StudioPress Themes.

    December 4, 2013 at 12:43 pm #77007
    pinar
    Member

    Hmm I didn't know it was very hard to edit the files on Genesis theme. Right now I'm developing the site on my local server. I was thinking of adding a lightbox to display photos (without adding a plugin), add a mailchimp newsletter subscription code (again without a plugin), add a map on the contact page and add pictures on about page etc. and alter the layout in the blog page. There are just so many changes I want to do I can't list all of them here. Hooks aren't enough in my case. That's why I asked how to add to the pages without changing the core structure, like how the functions.php and the style.css in the child theme folder are used for changes. I wanted to do the same with all pages...

    December 5, 2013 at 9:59 am #77222
    Brad Dalton
    Participant

    Sometimes plugins are a better option than code which is the case with Genesis eNews Extended.

    You can do that with hooks, filters and templates if needed.

    I suggest you start by asking one question at a time in a new post on these forums which is the best way to get the solution you need.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble