• 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

Custom Post Type Move Heading

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 › Custom Post Type Move Heading

This topic is: resolved

Tagged: Custom Post Type, heading

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 6 months ago by Scott Buehler.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 30, 2013 at 10:21 am #69909
    Scott Buehler
    Member

    Hey guys, I need assistance in moving the heading in my Custom Post Type. Currently I have http://www.socialtoolchest.com/featured/

    I hope this is OK, but I attached an image on Google Plus Genesis Community to show what I want it to look like in the end. https://plus.google.com/107415989115407435914/posts/9vvMKGfzhsD

    Can anyone assist?

    This is my template so far:

    <?php
    /**
     * Featured Social Toolchest Tools
     */
    
    // Text on top of page
    add_action( 'genesis_before_content', 'text_top' );
    function text_top() {
    		?>
    <div id="featured">
      <h2>Featured Must-Have Social Media Tools</h2>
      <p>Intro text here</p>
    </div>
    <?php
    }
    
    // Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    //* Modify the length of post excerpts
    add_filter( 'excerpt_length', 'sp_excerpt_length' );
    function sp_excerpt_length( $length ) {
    return 200; // pull first 50 words
    }
    
    //* Remove the post meta function "Filed Under" WORKS
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
     
    //* Remove the entry meta in the entry header "By Author and Date" WORKS
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    //* Remove the entry header markup "removes line under title" WORKS
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
    
    //* Remove Post Last Modified Function WORKS
    remove_action( 'genesis_entry_footer', 'last_modified' );
    
    // Change the sort/orderby
    add_action('genesis_before_loop', 'stc_before_loop');
    function stc_before_loop () {
            global $query_string;
            query_posts( wp_parse_args( $query_string, array( 'post_type' => 'featured', 'posts_per_page'=>20, 'orderby'=>'title','order'=>'ASC') ) );
    }
    
    genesis();

    TygrScott on Social Media

    http://www.socialtoolchest.com/featured/
    October 30, 2013 at 10:41 am #69917
    Scott Buehler
    Member

    I was able to fix what I needed with

    //* Move Featured Image Before Entry Title
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_entry_header', 'genesis_do_post_image', 3 );

    Thanks to: http://ahjira.com/move-the-post-image-before-the-post-title-on-genesis-blog-archive-and-search-results-pages/


    TygrScott on Social Media

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Custom Post Type Move Heading’ 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