• 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

Blog page custom container (ElevenForty Pro)

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 › Blog page custom container (ElevenForty Pro)

This topic is: resolved

Tagged: container, hooks

  • This topic has 3 replies, 3 voices, and was last updated 11 years, 7 months ago by Nile Flores.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 21, 2013 at 10:02 pm #74857
    Nile Flores
    Member

    I've been customizing Eleven40 Pro) and my inner pages have 2 containers. Example:

    http://webhost-solutions.net/me/about/
    The code I'm using is a hook and some CSS. Hook is the issue in this case

    Code for hook currently used:

    
    add_action( 'genesis_before_entry', 'custom_content_style', 1 );
    function custom_content_style() {
        if ( !is_page('home') && is_singular() ) {
        echo '<div class="content-inner"><div class="content-inner-2">';
        }
    }
    
    add_action( 'genesis_after_content', 'custom_content_style2');
    function custom_content_style2() {
         if ( !is_page('home') ) {
        echo '</div></div>';
    }
    }
    

    The problem is that on the blog page - http://webhost-solutions.net/me/blog/ - the issue is that the custom containers keep repeating and shrinking the inner content if I don't use is_singular() for the blog page and is_page('blog') only produces the same issue. When using is_singular() the containers aren't there.

    Single posts show up fine, but I need that container on the blog page to show up without distorting the content as seen in the current issue. It has to be a hook issue I'm missing. Anyone have a better suggestion for this?


    I help people rock out their sites! – Blondish.net

    http://webhost-solutions.net/me/blog/
    November 22, 2013 at 3:08 pm #75079
    Robin
    Member

    Your first function is hooked to genesis_before_entry, which is correct since you're using an HTML5 theme. The genesis_after_content hook is an XHTML hook; you probably want genesis_after_entry instead.

    HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    November 23, 2013 at 2:14 am #75137
    AnoopSudhakaran
    Member

    Yes, Try using genesis_after_entry hook.

    You can find the comparison of XHTML and HTML5 here : http://my.studiopress.com/docs/genesis-loop-hooks-comparison/

    November 23, 2013 at 6:30 pm #75309
    Nile Flores
    Member

    Worked. You'd think I would've figured it out.


    I help people rock out their sites! – Blondish.net

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Blog page custom container (ElevenForty Pro)’ is closed to new 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