• 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

Have a double heading on the first post of each page

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 › Have a double heading on the first post of each page

This topic is: resolved

Tagged: genesis_do_post_title

  • This topic has 16 replies, 2 voices, and was last updated 10 years, 11 months ago by Stefsull.
Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • June 4, 2014 at 7:57 pm #108117
    Stefsull
    Member

    Odd problem. I've customized the order of post title and image on main (non-single) pages. And all is well. Except that on the very first article/item on each page (main blog page, archives, whatever) the first entry-title displays twice. Here's the code I used to move things around:

    add_action( 'genesis_entry_header', 'sk_relocate_main_post_title_info' );
    function sk_relocate_main_post_title_info() {
     
      if ( !is_singular('post' ) ) {
     
        remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
        remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
        remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
        remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
     
        echo '<div class="each-post">';
          genesis_entry_header_markup_open();
          genesis_image( array( 'size' => 'panoramic' ) );
          genesis_post_info();
          genesis_do_post_title();
          genesis_entry_header_markup_close();
        echo '</div>';
     
      }
    }

    What I get is everything inside the .each-post div. But outside, before it begins, there's a h2 class="entry-title" (which is, of course, duped inside the div as well). Here's a screenshot of it: http://screencast.com/t/t3pvkOdPH

    Quite unsightly and I'm unsure of what I did to cause it. Thoughts?

    June 5, 2014 at 3:09 am #108139
    Brad Dalton
    Participant

    What do you want to do?


    Tutorials for StudioPress Themes.

    June 5, 2014 at 12:39 pm #108194
    Stefsull
    Member

    I want that extra first .entry-title to go away. I don't know what is making it duplicate ONLY on the first post of any page that's a collection of blog posts (blog home, archive, tags, categories and author). Whether I'm showing 5 posts or 10 posts, when you got to the second page of posts, again, that first title is duplicated OVER the div.each-post that holds the image, title and post-info... and the rest is properly inside.

    Any thoughts on what could be causing the duplication?

    June 5, 2014 at 1:41 pm #108202
    Brad Dalton
    Participant

    Yes. The code is wrong which is why i asked what you want to do.

    I would use different code but not sure what you want.


    Tutorials for StudioPress Themes.

    June 5, 2014 at 1:51 pm #108204
    Stefsull
    Member

    Now I gotcha.

    On all the pages that show lists of blog posts, my designer wants this order: http://screencast.com/t/KGvgV5RLvR9

    Panoramic image (I created the new image type)
    Post-info
    Post-title
    Snippet
    Post-meta

    So what I was attempting to do (in my own feeble way) is to unhook those items and reorder them (which I was "mostly successful" at).

    Where have I gone wrong? (I'm a good front-end dev, but still learning Genesis/WP... so I tend to hack things together and I'm still trying to learn best practices.)

    June 5, 2014 at 2:35 pm #108211
    Brad Dalton
    Participant

    Are you referring to all archives? Blog listings page, including archive, author, blog, category, search, and tag pages?

    On all the pages that show lists of blog posts


    Tutorials for StudioPress Themes.

    June 5, 2014 at 2:38 pm #108212
    Stefsull
    Member

    Yup... that's what I was saying in the previous post: "any page that’s a collection of blog posts (blog home, archive, tags, categories and author)." All of those should be in this same style. Thanks.

    June 5, 2014 at 2:46 pm #108216
    Brad Dalton
    Participant

    What theme are you using? Can you link to the site please.


    Tutorials for StudioPress Themes.

    June 5, 2014 at 3:04 pm #108217
    Stefsull
    Member

    My site is built off the Genesis Sample. It's on a staging server... I can link you to that privately.

    June 5, 2014 at 3:10 pm #108218
    Stefsull
    Member
    This reply has been marked as private.
    June 5, 2014 at 3:11 pm #108220
    Stefsull
    Member

    Brad, I did a private link to the site, but I can't tell by looking whether it went to you or not. It shows private, but not who it's for. Let me know if you can NOT see it. Cheers.

    June 5, 2014 at 3:34 pm #108227
    Brad Dalton
    Participant

    How about this:

    archive template


    Tutorials for StudioPress Themes.

    June 5, 2014 at 3:35 pm #108229
    Brad Dalton
    Participant

    Sorry. Don't get PM's.

    Here's my email

    [email protected]


    Tutorials for StudioPress Themes.

    June 5, 2014 at 3:39 pm #108231
    Stefsull
    Member

    Thanks... emailed you. And yes, your image is what I'm trying to achieve... except for that one. little. problem. 😉

    June 16, 2014 at 12:44 pm #110015
    Stefsull
    Member

    The resolution involved making the changes via a template applied instead of the functions.php page. And no, I'm unclear on why that worked, but thought I'd mention it.

    June 16, 2014 at 1:20 pm #110023
    Brad Dalton
    Participant

    So its all good now Stephanie?


    Tutorials for StudioPress Themes.

    June 16, 2014 at 1:30 pm #110024
    Stefsull
    Member

    Yes! Thank you so much for your help, Brad. 🙂

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

© 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