• 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

Help updating custom child theme from 2012

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 › Design Tips and Tricks › Help updating custom child theme from 2012

This topic is: resolved

Tagged: customize.php, customizer, sanitize

  • This topic has 6 replies, 2 voices, and was last updated 6 years, 5 months ago by collegeofwooster.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 1, 2019 at 6:07 am #492038
    collegeofwooster
    Participant

    Good morning.

    I've finally gotten some time at work to update the child theme I created in 2012 for our department. The release of Genesis 3 seemed like a good reason to make sure the theme is supporting HTML5 and Accessibility. There is still a bunch of code that could be cleaned up but I am now focused on trying to migrate the child theme settings to the modern approach through the Customizer API and need some guidance or a clear tutorial. I originally followed a tutorial by Bill Erickson to add an admin page for my themes settings but am unclear in searching through the Customizer API how to go about migrating these settings to the Customizer API. Any assistance or pointers would be appreciated.

    -Jon

    https://github.com/jbreitenbucher/GenesisChildThemes/blob/master/technology-3/lib/admin/admin.php
    July 1, 2019 at 6:13 am #492039
    Brad Dalton
    Participant

    I would look at the customize.php file in your new child theme. The code is fairly easy to work with compared to the adding a options page.


    Tutorials for StudioPress Themes.

    July 1, 2019 at 7:58 am #492041
    collegeofwooster
    Participant

    @braddalton Do you mean in a newer StudioPress Child theme? My theme does not have a customize.php file. I think that is what I am trying to create. I think I have something working now, but don't see a way to add a panel as a sub-panel like I could add my theme settings as a sub-page of the Genesis page before.

    July 1, 2019 at 7:59 am #492042
    Brad Dalton
    Participant

    Look in any of the new themes and you'll see how thats done in customize.php.

    Authority Pro is 1 example.


    Tutorials for StudioPress Themes.

    July 1, 2019 at 8:24 am #492043
    collegeofwooster
    Participant

    Thanks.

    July 1, 2019 at 11:18 am #492056
    collegeofwooster
    Participant

    I think I've got it sorted (using the panel option). get_option() is finding the values and things are behaving as expected. The only thing I'm not sure of is how to sanitize one of my options to make sure it is an integer.

    July 1, 2019 at 12:33 pm #492058
    collegeofwooster
    Participant

    Sanitization working. Marking as resolved.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Help updating custom child theme from 2012’ is closed to new 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