• Hi Guys,

    I would like to have an update feature for my pages. So everytime I update a page Google should see the actual date for the update (similiar how we can see that on our blog pages).

    This update SEO feature seems not to be integrated in the Hueman theme.

    Please help or advise how to solve this issue.

    Thank you

    Karsten

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Karsten. Wie gehts? Are you asking about displaying the updated date somewhere on the page like is done on the posts?

    Thread Starter karsten007

    (@karsten007)

    Hi bdbrown, danke, mir geht es gut. Wie geht es Dir? Great to see you like German language.

    Basically I would like to achieve that the GoogleBot can see that the page was updated, because this should improve the my google ranking.

    Currently I have put this script in my page:

    <script type="application/ld+json">
    { "@context": "https://schema.org",
    "@type": "Article",
    "headline": "Dax Chartanlayse",
    "alternativeHeadline": "",
    "author": "Karsten Kagels",
    "genre": "Trading",
    "keywords": "Dax Chartanalyse",
    "publisher": "Kagels Trading",
    "url": "https://www.kagels-trading.de/dax-chartanalyse/",
    "description": "Aktuelle DAX-Chartanalyse wichtiger mittel- und
    langfristiger Charts für den Deutschen Aktienindex (DAX)",
    "datePublished": "2016-07-26",
    "dateCreated": "2016-07-26",
    "dateModified": "2016-07-26"
    }
    </script>

    But this solution is not very convenient, because every time I have to update the “dateModified” manually.

    I would like to see that our Hueman theme offers the possibly to update this SEO action automatically.

    And yes, also it would be helpful, to see the Update like in the post blogs.

    Thank you for your great support.

    Karsten

    Ich habe Deutsch in der High School , aber das war schon vor langer Zeit in einer Galaxie weit, weit weg.

    OK, that’s actually true but I didn’t remember how to say it so I had to use Google translate ??

    Here’s the code the theme uses in the single post to get the published and modified dates. I would think you could add this to your page templates as well:

    <?php if( get_the_modified_date() != get_the_date() || get_the_modified_time() != get_the_time() ) : ?>
        <?php _e('Published', 'hueman'); ?> <time class="published" datetime="<?php echo $published_date; ?>"><?php echo $published_date; ?></time>
         &middot; <?php _e('Updated', 'hueman'); ?> <time class="updated" datetime="<?php the_modified_date( get_option('date_format') ); ?>"><?php the_modified_date( get_option('date_format') ); ?></time>
    <?php else : ?>
        <time class="published" datetime="<?php echo $published_date; ?>"><?php echo $published_date; ?></time>
    <?php endif; ?>

    You could then use display:none to hide the content if you didn’t want it on your page. However, that hides it from screen readers and there is some debate on whether or not that affects SEO. A couple of other options are to set it off the page (https://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/), set the text to the same color as the background, or set the font size to zero.

    Thread Starter karsten007

    (@karsten007)

    Hi bd,

    yes, the German is very difficult, and if you don’t practise regularly you will quickly forget it. I made the same experience when I studied russian language.

    Thank you very much for the for the code. It is exactly what I was looking for.

    My best,

    Karsten

    Froh, dass ich Helfen kann. Ich wünsche ihnen einen wunderbaren Tag!

    Thread Starter karsten007

    (@karsten007)

    Perfekte deutsche Sprache! vielen Dank

    Danke! If you don’t have any further questions here please mark the topic as Resolved. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Date updates for pages’ is closed to new replies.