• 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

Focus Theme- Adding Widget Area Under Header

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 › Focus Theme- Adding Widget Area Under Header

This topic is: resolved

Tagged: focus, New Widget Area

  • This topic has 1 reply, 1 voice, and was last updated 10 years ago by ATS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 30, 2013 at 12:15 pm #43249
    ATS
    Participant

    Sorry for bothering, but it's been too many hours already trying to implement different solutions.

    URL:  http://bilingualkidsrock.com

    Task: Add full width widget area under header.

    Done: functions.php

    //* Register after header widget area
    genesis_register_sidebar( array(
    'id' => 'after-header',
    'name' => __( 'After Header', 'focus' ),
    'description' => __( 'This is a widget area that comes under header for collecting emails', 'focus' ),
    ) );

    Genesis Simple Hooks plugin: added this piece in genesis_after_header box, activated PHP

    <div class="after-header">
    <?php dynamic_sidebar( 'after-header' ); ?>
    </div>

    Question: How I can add to above code if  (is_home()) or something like that to display on home page only?

    It shows on all pages... I tried diffent things with home.php and functions.php but... nothing worked.

    Thanks in advance!

    http://bilingualkidsrock.com
    May 30, 2013 at 4:08 pm #43267
    ATS
    Participant

    ok, found solution by myself. the code for Simple Hooks  is:

    <?php
    if(is_front_page() ) {
    ?>
    <div class="after-header">
    <?php dynamic_sidebar( 'after-header' ); ?>
    </div>
    <?php
    }
    ?>

    or

    <?php
    if(is_home() ) {
    ?>
    <div class="after-header">
    <?php dynamic_sidebar( 'after-header' ); ?>
    </div>
    <?php
    }
    ?>

    depending how you set up your Home page in Reading section of General Settings.

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