• 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 widgets and hooks

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 widgets and hooks

This topic is: not resolved

Tagged: css, home, widget

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by AliKK.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 11, 2013 at 5:22 pm #11355
    AliKK
    Member

    Hi there,

    I'm running the eleven40 theme and I've run into a bit of trouble on the home page.  Here's what's going on.

    I want my home page to function as a sales page of sorts.  So I've rendered the posts inactive and created a home page widget where I can enter my own content and insert the genesis responsive slider.

    Now, this means everything I do is being placed in the widgets...which means when I try to stylize things with CSS, it's being stripped out and not working (using the text widget).  I can't seem to find a widget that doesn't strip the css.

    I wondered if using the simple hooks would help...but I can't seem to find one specific to the home page.

    So, I guess I'm asking if there is anything I can do  on the home.php page that would make it possible to insert html without using a widget.  If not, is there a widget that can be used that won't strip the css.  If not, can I create a new/different home page that I could still insert the genesis responsive slider as a widget (full width), then treat the rest of the page like a normal page where css could be inserted?

     

    Thanks

    January 11, 2013 at 5:34 pm #11356
    Jon Bellah
    Member

    AliKK,

    A better route would likely be to use a custom page template. That will help you with customization, without you having to rely on widgets.

    Here's a basic shell you can use for a template.

    <?php
    
    /**
     * Template Name: Home Template
     */
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
     add_action( 'genesis_loop', 'child_home_template' );
    
    function child_home_template() { ?>
    
    <!-- INSERT YOUR HTML HERE -->
    
    <?php
    
    }
    
    genesis();
    
    

    Save the file to your child theme folder (name it something like home-template.php), then go into the Home page in WordPress and set the template to "Home Template" and voila.


    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 11, 2013 at 6:37 pm #11370
    AliKK
    Member

    Hi.  Thanks.  I'm not clear on how to set the template the Home Template.  Thanks.

  • 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

© 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