• 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

How to Re-arrange Widget areas on Digital Pro

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 › How to Re-arrange Widget areas on Digital Pro

This topic is: resolved

Tagged: digital pro

  • This topic has 7 replies, 2 voices, and was last updated 8 years, 11 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 30, 2016 at 3:10 pm #196834
    hectc7
    Member

    Hello,

    I am using Digital Pro. I simply want to have my OUR SERVICES section of my website come before the NEWSLETTER section.

    What I attempted was to switch the widgets I used to create these sections and put them in different WIDGET AREAS

    I switched the widgets of "FRONT PAGE 2" widget area into "FRONT PAGE 3" widget area

    and the widgets of "FRONT PAGE 3" widget area in "FRONT PAGE 2" widget area

    However, this created a mess because I'm assuming the widget areas were designed to support only a specific kind of widgets.

    So can I simply find a way to rearrange the WIDGET AREAS?

    Screenshot link here

    Thanks!!!!

    http://digitalhmarketing.com
    November 30, 2016 at 3:26 pm #196835
    Brad Dalton
    Participant

    What happens if you do this:

    //* Add widgets on front page
    function digital_front_page_widgets() {
    
    	if ( get_query_var( 'paged' ) >= 2 )
    		return;
    
    	echo '<h2 class="screen-reader-text">' . __( 'Main Content', 'digital' ) . '</h2>';
    
    	genesis_widget_area( 'front-page-1', array(
    		'before' => '<div class="cover">',
    		'after'  => '</div>',
    	) );
    
            genesis_widget_area( 'front-page-3', array(
    		'before' => '<div id="front-page-3" class="front-page-3"><div class="wrap"><div class="flexible-widgets widget-area fadeup-effect' . digital_widget_area_class( 'front-page-3' ) . '">',
    		'after'  => '</div></div></div>',
    	) );
    
    	genesis_widget_area( 'front-page-2', array(
    		'before' => '<div id="front-page-2" class="front-page-2"><div class="wrap"><div class="flexible-widgets widget-area fadeup-effect' . digital_halves_widget_area_class( 'front-page-2' ) . '">',
    		'after'  => '</div></div></div>',
    	) );
    	
    	genesis_widget_area( 'front-page-4', array(
    		'before' => '<div id="front-page-4" class="front-page-3"><div class="wrap"><div class="flexible-widgets widget-area fadeup-effect' . digital_widget_area_class( 'front-page-3' ) . '">',
    		'after'  => '</div></div></div>',
    	) );
    
    }
    

    Untested however i think it should work fine.


    Tutorials for StudioPress Themes.

    November 30, 2016 at 9:26 pm #196840
    hectc7
    Member

    Thanks for the code.

    However, I'm new to this. Can you please instruct me on what wordpress file I should post this on and where in the file.

    I posted it at the very bottom of my Digital Pro Child Theme's functions.php file and I broke my site. hehehe

    Thanks!

    December 1, 2016 at 6:56 am #196850
    Brad Dalton
    Participant

    Using FTP and a code editor, replace the existing function in your front-page.php file with the modified code. between lines 109 - 136


    Tutorials for StudioPress Themes.

    December 1, 2016 at 12:12 pm #196861
    hectc7
    Member

    One more question I have.
    As you can see by this screenshot, Digital Pro is a CHILD THEME.

    And therefore, even if I use FTP, would have to access the front-page.php file through the GENESIS PARENT THEME. Which means when there is an update, all the code would be replaced by the default and my changes would be gone?

    Am I understanding this correctly??

    Thanks for all your responses BTW.

    December 1, 2016 at 12:23 pm #196862
    hectc7
    Member

    Actually, my GENESIS PARENT THEME does not have a front-page.php -- either --as you can see by this screenshot

    Thanks!

    December 1, 2016 at 12:26 pm #196863
    hectc7
    Member

    OK, SO sorry. Front-page.php DOES EXIST in my Child theme via http://FTP... Who Feels like a fool right now????

    ME<-----------This GUY!!

    Thanks for all the help... I'll be quiet now 🙂

    December 1, 2016 at 12:31 pm #196864
    Brad Dalton
    Participant

    Never modify any of the code in Genesis.

    All mods should be done via your child theme.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to Re-arrange Widget areas on Digital Pro’ 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