• 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

Home page header on all pages in Metric

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 › Home page header on all pages in Metric

This topic is: not resolved

Tagged: header, metric, widgets

  • This topic has 6 replies, 2 voices, and was last updated 11 years, 2 months ago by aself.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 31, 2014 at 12:11 am #97572
    aself
    Member

    Hi,

    I believe someone else asked a similar question but there wasn't a response. I'd like to add the Home Top Left and Home Top Right widgets to every page on my site. Is that possible?

    Thanks for your help!

    http://glendalegala.com
    March 31, 2014 at 1:58 am #97577
    Brad Dalton
    Participant

    You would need to move them out of your home.php file and into your functions.php file.


    Tutorials for StudioPress Themes.

    March 31, 2014 at 12:11 pm #97710
    aself
    Member

    Thanks Brad. This is the code from home.php that I think I want on every page,

    <div id="home-top-bg">
    	<div id="home-top">
    	
    		<div class="home-top-left">
    			<?php if (!dynamic_sidebar('Home Top Left')) : ?>
    			<div class="widget">
    				<?php if( function_exists('wp_cycle') ) : ?>
    					<?php wp_cycle(); ?>
    				<?php endif; ?>
    			</div>			
    			<?php endif; ?>
    		</div><!-- end .home-top-left -->
    		
    		<div class="home-top-right">
    		
    			<?php if (!dynamic_sidebar('Home Top Right')) : ?>
    			<div class="widget">
    				<h4><?php _e("Home Top Right", 'genesis'); ?></h4>
    				<p><?php _e("This is a widgeted area which is called Home Top Right. It is using the Genesis - Featured Page widget to display what you see on the Metric child theme demo site. To get started, log into your WordPress dashboard, and then go to the Appearance > Widgets screen. There you can drag the Genesis - Featured Page widget into the Home Top widget area on the right hand side.", 'genesis'); ?></p>
    			</div>			
    			<?php endif; ?>
    		</div><!-- end .home-top-right -->
    				
    	</div><!-- end #home-top -->
    </div><!-- end #home-top-bg -->

    I'm pretty sure I can't put that into the functions.php file so I must not be understanding your advice.

    Thanks again for your help.

    March 31, 2014 at 3:21 pm #97770
    Brad Dalton
    Participant

    The code would look something like this

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++


    Tutorials for StudioPress Themes.

    March 31, 2014 at 10:07 pm #97846
    aself
    Member

    Thank you so much for helping me with this. It's so close! I tried figuring out how to do it from here, but still can't figure out how to output it before the content as on this page, http://gpapo.org/glendalegala/tickets/.

    Thanks again.

    March 31, 2014 at 11:43 pm #97849
    Brad Dalton
    Participant

    Change the hook http://genesistutorials.com/visual-hook-guide/

    from genesis_loop to any other hook position.


    Tutorials for StudioPress Themes.

    April 1, 2014 at 2:05 pm #97953
    aself
    Member

    Thank you! I'm almost there and hope to finish on my own. I appreciate your help!

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