• 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

Move Post Titles above Content/Sidebar Wrap

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 › Move Post Titles above Content/Sidebar Wrap

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by Treefungus.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 21, 2013 at 5:22 pm #13595
    ameeker
    Member

    `

    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_sidebar_wrap’, ‘genesis_do_post_title’ ); } } `

     

    Using the Executive theme, I'm trying to move post/page titles on single/page above the content/sidebar wrap using the snippet above, but that's not working. Anyone around who could help me correct it?


    Looking for Genesis website design backed by strategy? http://www.angiemeekerdesigns.com

    January 21, 2013 at 8:09 pm #13628
    ameeker
    Member

    Here's what worked, with some help from David Decker.

    `

    /** Relocate the post info */
    add_action( 'genesis_meta', 'ddw_post_move_title' );
    function ddw_post_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_sidebar_wrap', 'genesis_do_post_title' );
    }
    }

    `


    Looking for Genesis website design backed by strategy? http://www.angiemeekerdesigns.com

    January 21, 2013 at 8:23 pm #13633
    ameeker
    Member

    Having said that, on archive pages, that moves the title of the last post above the content/sidebar and removes the post titles from the rest of the archive/category page. Hmm... How to get them back as they were on archive pages...


    Looking for Genesis website design backed by strategy? http://www.angiemeekerdesigns.com

    January 21, 2013 at 9:27 pm #13646
    ameeker
    Member

    Here is an example of the archive pages now. http://vidafit.angiemeekerdesigns.com/2013/01/


    Looking for Genesis website design backed by strategy? http://www.angiemeekerdesigns.com

    January 22, 2013 at 8:56 am #13702
    Bing Crosby
    Member

    I don't know if it's because the code above wasn't wrapped in "code" tags or not, but when I copied it, all of the single quotes were "curly" quotes, which obviously isn't what you want in PHP.

    Just a heads up for anyone using this!

    January 26, 2013 at 5:00 am #14977
    Treefungus
    Member

    Hi ameeker

    Did you sort it out? I am having same issue but it seems you sorted it. How did you do get your titles back on the blog archives?

    Thanks

     

    I believe I sorted it. Thanks anyway

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