• 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

Add a header/title in Authorpress Frontpage2 widget area

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 › Add a header/title in Authorpress Frontpage2 widget area

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago by brock.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 5, 2016 at 6:19 am #185020
    jeffczyz
    Member

    I'd like to add in a "Featured Books" title that spans across the 4 book areas in the Frontpage 2 widget area. Where would I find the code/place to put that? I'm not a hardcore programmer, but wouldn't think it could be too difficult.

    Thanks

    May 6, 2016 at 9:32 pm #185135
    brock
    Member

    Do you still need help with this?

    May 6, 2016 at 9:56 pm #185140
    brock
    Member

    Add this to the functions.php file:

    
    // Add "Featured Books" title to the homepage
    function add_featured_books_title () {
    	if ( !is_front_page() ) {
    		return;
    	} else {
    		echo "<h1 id='featBooks'>Featured Books</h1>";		
    	}
    }
    
    add_action( 'genesis_loop', 'add_featured_books_title' );
    

    And add this to the style.css file:

    
    /* Custom Styles */
    #featBooks {
    	text-align: center;
    	padding-top: 40px;
    }
    
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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