• 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

How to move genesis article title out of 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 › How to move genesis article title out of wrap?

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 6 years ago by SRD.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 12, 2017 at 9:38 pm #201029
    SRD
    Member

    Hi,

    How do I move header.entry-header out of the wrap, and above div.site-inner?

    Thanks,
    Steve

    February 13, 2017 at 7:38 am #201038
    Victor Font
    Moderator

    You have a custom div on your site (gch_header), so I have no idea if this will work in your particular instance. In a standard Genesis child theme, without custom elements, you would add this to functions.php:

    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
    
    add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 11 );
    add_action( 'genesis_after_header', 'genesis_do_post_title', 12 );
    add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 13 );

    Your custom element may interfere with this working properly. You may have to adjust the priorities in the add_actions.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 14, 2017 at 12:30 am #201109
    SRD
    Member

    Thank you Victor, it worked perfectly.

    I have access to a visual hooks guide, but is there also a genesis functions guide?

    I understand genesis_after_header is a genesis hook, and genesis_do_post_title is a genesis function. Is that right?

    Regards,
    Steve

    February 14, 2017 at 8:02 am #201125
    Victor Font
    Moderator

    Yes. That's correct. As for function guides, there are a couple on the net, but I find them to be outdated or too sparse when it comes to understanding what a function does. I keep a copy of Genesis locally. Almost everything you need to start understanding Genesis functions is in its lib/structure directory. The real key is to gain an understanding of WordPress actions and filters. Tonya Mork at https://knowthecode.io/ has put together some of the best WordPress and Genesis tutorials I've seen. She really gets into the heart of the matter and not only explains how code works, but why it works as it does. Many of her classes are free, but the price for full access is worth it if you want to be a better developer.

    BTW, I've also started a series of tutorials on Genesis Dynamic filters. As time permits, I'll be adding to the content. Here's part 1: https://victorfont.com/understanding-genesis-dynamic-apply_filters-part-1/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 14, 2017 at 8:14 am #201127
    SRD
    Member

    Hi Victor,

    I've been searching for something like knowthecode.io for about a year.

    Thank you so much for the link, and for your support.

    Regards,
    Steve

    March 7, 2017 at 6:40 am #202627
    SRD
    Member

    Hi Victor,

    The code

    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
    add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 11 );
    add_action( 'genesis_after_header', 'genesis_do_post_title', 12 );
    add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 13 );

    works on post titles and page titles.

    How do I make it only affect page titles, leaving post titles where they are?

  • 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