• 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

post date is displaced

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 › post date is displaced

This topic is: not resolved

Tagged: .post-info, date, hook, hooks

  • This topic has 7 replies, 2 voices, and was last updated 6 years, 7 months ago by epiceriedublog.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 15, 2016 at 8:48 am #187587
    fpsdf
    Member

    I changed the post info hook priority, in order to place it above the post title.
    That worked, except for the latest post – for some reason, it's being shown displaced, below...

    Here, you can take a look: http://cotton.lampada.pt

    http://cotton.lampada.pt
    June 15, 2016 at 9:06 am #187588
    epiceriedublog
    Member

    As you can see in the code, the entry meta paragraph is OUTSIDE the header in the first article ... That's why you have this ...

    https://dl.dropboxusercontent.com/u/23922060/temporaires/problem-header.png

    Why don't you simply use the plugin simple edits to place the meta as you want ?


    Blogger at epiceriedublog.com
    My last Genesis child Theme: Holly Foody

    June 15, 2016 at 9:42 am #187590
    fpsdf
    Member

    Hey, thank you so much for your support!

    I noticed that the markup is incorrect, just like in your screenshot. My question is: why?
    I'm using the plugin Simple Hooks, but I guess the script is "running late" for this latest post. Here it is:

    <?php
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    add_action( 'genesis_entry_header', 'genesis_post_info', 8 );
    ?>

    As for Simple Edits, I'm actually using it. It doesn't allow choosing where the post info is displayed. It only allows me to choose what elements constitute the info (date, comments count, author).

    Thank you, once more!

    June 15, 2016 at 9:51 am #187592
    epiceriedublog
    Member

    It is weird ...

    And if you try this:

    add_action( 'genesis_before_entry', 'genesis_post_info', 12 );

    ?


    Blogger at epiceriedublog.com
    My last Genesis child Theme: Holly Foody

    June 15, 2016 at 11:04 am #187595
    fpsdf
    Member

    That workaround... works! I hope there's no inconvenient in having the post info actually outside the article. Visually, the result is the same.

    Thank you so much for your care!

    June 15, 2016 at 11:13 am #187596
    epiceriedublog
    Member

    I'm not an expert on the SEO side ... But I think it will have a very low impact and as I read recently, dates may have a negative impact, see here: http://www.shoutmeloud.com/effect-of-showing-date-stamp-on-blog-traffic-case-study.html


    Blogger at epiceriedublog.com
    My last Genesis child Theme: Holly Foody

    June 15, 2016 at 11:24 am #187597
    fpsdf
    Member

    They're showing techniques for displaying dates to users and hiding them from search engines (using js).
    Maybe putting them outside the article markup (just like I did) will have a similar effect!

    Anyway, you're being the kindest! Thank you so much.

    June 15, 2016 at 11:25 am #187598
    epiceriedublog
    Member

    you're welcome 😉


    Blogger at epiceriedublog.com
    My last Genesis child Theme: Holly Foody

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