• 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

Page Title Above Content Sidebar

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 › General Discussion › Page Title Above Content Sidebar

This topic is: not resolved

Tagged: genesis_do_post_title, post title

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 1, 2016 at 4:10 pm #180382
    pvanania
    Member

    Hello,

    This is the second time I asked this.

    I use the below code to make the page title full width about the sidebar. Now I am having two problems. The first is that I need a div to wrap around the page title. It is just<h1 class="entry-title" itemprop="headline">About</h1> with .site-container as its parent.

    The second problem is that it is causing issues for the search results template, author templates and I fear others. you can see what I mean by visiting my site here. The title is in a random spot of the top of the page. On these pages it should be where it normally is by default.

    Here is the code snippet I used:

    `//Moves titles above content and sidebar
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_after_header', 'genesis_do_post_title', 20 );
    //this removes post titles from blog archive pages as well
    //Add titles back to home page, single posts, categeory archives and one specific page
    add_action('get_header', 'move_other_post_titles');
    function move_other_post_titles() {
    if (is_home() || is_single() || is_page('contact-me') || is_category()) { // added conditional 'or is_single' and 'or is_category'
    remove_action( 'genesis_after_header', 'genesis_do_post_title', 20 );
    add_action( 'genesis_entry_header', 'genesis_do_post_title' );
    }
    }

    http://maineicons.org/author/pvanania/
    March 6, 2016 at 8:51 am #180758
    Brad Dalton
    Participant

    Are you referring to single page titles? Or single post titles? I think you mean single post title right?

    For the markup, look in genesis to see how its added. to the post title and entry header.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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