• 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

Education Theme: Move the Call to Action bar above the Featured Widgets

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 › Education Theme: Move the Call to Action bar above the Featured Widgets

This topic is: not resolved

Tagged: call to action, education theme

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 12 months ago by SethResler.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 27, 2013 at 9:37 pm #42862
    SethResler
    Participant

    I'm using the Education theme and I'd like to move the Call to Action bar above the Featured Widgets (just below the Intro). How can I do this?

    Thanks. -Seth

    May 27, 2013 at 10:15 pm #42866
    Brad Dalton
    Participant

    Tested this and it works. Simply move the code for the Call to action above the featured widget in the home.php file:

    <?php
    
    add_action( 'genesis_meta', 'education_home_genesis_meta' );
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     */
    function education_home_genesis_meta() {
    	
    	global $paged;
    	
    	if( $paged < 1 ) {
    		if ( is_active_sidebar( 'slider' ) || is_active_sidebar( 'intro' ) || is_active_sidebar( 'featured' ) || is_active_sidebar( 'call-to-action' ) ) {
    		
    			add_action( 'genesis_before_content', 'education_home_loop_helper', 1 );
    	
    		}
    	}
    	
    }
    
    function education_home_loop_helper() {
    		
    		echo '<div id="home-featured">';
    		
    		genesis_widget_area( 'slider', array( 
    		
    			'before'	=>	'<div class="slider widget-area">' 
    		
    		) );
    
    		genesis_widget_area( 'intro', array( 
    		
    			'before'	=> 	'<div class="intro widget-area"><div class="inner">', 
    			'after'	=>	'<div class="clear"></div></div></div><!-- end .intro -->' 
    		
    		) );
    		
    		genesis_widget_area( 'call-to-action', array(
    		
    			'before'	=>	'<div class="call-to-action"><div class="banner-left"></div>', 
    			'after'	=>	'<div class="banner-right"></div></div><!-- end .call-to-action -->'
    		
    		) );		
    		
    		genesis_widget_area( 'featured', array(
    		 
    			'before'	=>	'<div class="featured widget-area"><div class="inner">', 
    			'after'	=>	'<div class="clear"></div></div></div><!-- end .featured -->' 
    			
    		) );
    		
    		echo '</div>';
    		
    }
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    genesis();
    

    Tutorials for StudioPress Themes.

    May 28, 2013 at 12:52 am #42877
    SethResler
    Participant

    Perfect, thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 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