• 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

Modify Genesis Featured Page Widget output layout

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 › Modify Genesis Featured Page Widget output layout

This topic is: resolved

Tagged: featured page

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 2 months ago by webgirl.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 30, 2017 at 3:35 pm #200276
    webgirl
    Participant

    Hi there -

    I figured out how to modify the featured-page-widget.php file so that these display on the home page the way I want, just reversed the order of the title and content with the featured image. Can I upload this to my child theme so it doesn't get overwritten with a Genesis update? Where would it go, what's the directory structure?

    Thanks,
    Lisa

    http://webthreesixty.com/bsk2017/
    January 30, 2017 at 4:08 pm #200279
    Erika
    Participant

    Hi Lisa,

    You should be able to upload it. Depending on what company hosts your website, you may be able to access your website's root files through a File Manager in your cPanel. If you can, you would locate the folder of you site, find the correct child theme folder, and upload you php file to it. This would create the changes on your site and prevent them from being overwritten when Genesis updates, because the file would appear to be part of your child theme.

    Hope this helps!

    January 31, 2017 at 8:56 am #200322
    Brad Dalton
    Participant

    You can copy over the file to your child theme's root directory and load it from your functions file using the following code.

    There's 2 steps:

    1. Load the file. In this case from your child theme's root directory.

    include_once( get_stylesheet_directory() . '/modified-featured-page-widget.php' );
    

    2. Register the widget. Assumes you've changed the PHP class to Genesis_Featured_Page_Modified.

    add_action( 'widgets_init', 'genesis_featured_page_widget' );
    function genesis_featured_page_widget() {
    	register_widget( 'Genesis_Featured_Page_Modified' );
    }
    

    Tutorials for StudioPress Themes.

    January 31, 2017 at 9:45 am #200325
    webgirl
    Participant

    Thank you, Brad. Issue resolved!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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