• 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 add creative work to main site content in custom front-page

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 › how to add creative work to main site content in custom front-page

This topic is: not resolved

Tagged: front-page.php, full width content, genesis sample theme

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 7 months ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 1, 2016 at 11:20 am #192480
    Amol
    Participant

    Hello Everyone,

    I have created following front-page.php with fullwidth content. I am only able to create widgets in genesis_after_header due to which i am unable to add widget in site-inner section for creative work structer data. Any help how do i do it correctly. Thanks

    Front page.php ---------->

    <?php

    add_filter( 'genesis_attr_site-inner', 'kd_attributes_site_inner' );
    /**
    * Add attributes for site-inner element.
    *
    * @since 2.0.0
    *
    * @param array $attributes Existing attributes.
    *
    * @return array Amended attributes.
    */
    function kd_attributes_site_inner( $attributes ) {
    $attributes['role'] = 'main';
    $attributes['itemprop'] = 'mainContentOfPage';
    return $attributes;
    }

    // Remove div.site-inner's div.wrap
    add_filter( 'genesis_structural_wrap-site-inner', '__return_empty_string' );

    // Display header
    get_header();

    // Content

    // Display Footer
    get_footer();


    What’s Beneath the Webface

    http://www.siteonlocalhost.com
    October 14, 2016 at 7:18 am #194709
    Susan
    Moderator

    As you posted this a while ago, I hope you were able to get your issue resolved.

    If you ever don't get a response here in the forum, you might want to try posting in the Genesis Slack Group.

  • 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

© 2026 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