• 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

Making a post-title full-width

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 › Making a post-title full-width

This topic is: not resolved

Tagged: full width, News Theme, title

  • This topic has 3 replies, 2 voices, and was last updated 13 years, 9 months ago by SoZo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 28, 2012 at 12:42 pm #2074
    SarahFoxes
    Member

     

    Hey everyone,

    So I'm ok with modifying code and regular things but I am just stumped with this trick.  I'm looking for a way to make the 'News' child-theme's post title full-width with a (content-sidebar) layout. So the content and sidebar would still be in-line, just stretch the whole title across and content and side-bar right underneath it.

    I know I would have to move the title out of the 'content' section but when I asked tech-support here they also said:

    This requires some PHP edits. I don't have the exact code for this because it will require some conditional logic. Basically you remove/add the title like
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    add_Action( 'genesis_before_content', 'genesis_do_post_title' );

    The only problem is, this will really mess things up on archive pages including the blog page template. So you need a conditional action that will load this on single posts and pages, but not the blog page template.

    So I have to worry about that too, which is a really good catch since I didn't think of that.  They said I should ask here.  If anyone has done this sort of thing before it would be a HUGE help, and then I'll share the fix for people to use on all the themes (since they are all so similar in basic design).

    Thanks for reading 🙂

    Sarah

    November 28, 2012 at 6:15 pm #2184
    SoZo
    Member

    You can learn about conditional tags here. And the basic structure of a function is

    add_action('name_of_hook_goes_here', 'function_name_here');
    function function_name_here() {
    conditional_code_goes_here {
    WHAT YOU WANT OUTPUT IF CONDITION IS MET GOES HERE
    }
    }

    And a function name can be anything you want as long as it's not already used by another function

    So for what you are after it would go something like:

    add_action('genesis_init', 'move_title');
    function move_title() {
    if( is_single() || is_page() || ! is_page_template('page_blog.php') ) {
    remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
    add_Action( ‘genesis_before_content’, ‘genesis_do_post_title’ );
    }
    }

     


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 28, 2012 at 7:28 pm #2195
    SarahFoxes
    Member

    i will try plugging this in tonight and i'll see what happens. Where should i be putting this code for the best chance of success?

    November 28, 2012 at 8:50 pm #2206
    SoZo
    Member

    You can put it anywhere as long as it's not in the middle of another function. To be safe you can tack it on to the end of the file.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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