- This topic has 6 replies, 3 voices, and was last updated 10 years, 1 month ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
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.
I have tried to change the post info using genesis simple hooks and by putting the following code into the genesis_before_post_content Hook box.
Last updated on
'F j, Y'
); ?></span> <span
>by <?php the_author_posts_link(); ?></span> <span
"<?php the_permalink(); ?>#respond"
'Leave a Comment'
); ?></a></span> <a
It worked, but now it puts the post info (Date, Name, etc.) on not only my posts, but all my pages too! How can I change it for just posts?
Thanks in advance!http://www.healthywealthyexpat.com
Brad... always value your advice!
I had the same problem with adding the post info in Simple Edits. The post info showed not only on my posts, but also my pages.
Took your advice. Copied the view raw link and pasted it at the end of my child themes function.php file.
(had to delete my Simple Edits code first.. gave a system error)
Now, nothing is showing at the top of my posts. Previously, it showed.
Any ideas? Thanks in advance.
Thanks for the advice, Brad. Sorry, I've been on a two month hiatus and just back working on my site. That wasn't me replying above your last comment, but I did try what you suggested and it still shows up on all my pages (forum, archives, etc.) I only want the 'Last updated on...' to show up on posts. Any other ideas anyone? Thanks!
PHP code generally will not work if you have the Genesis Simple Edits plugin activated as well because it over rides the code.
The CSS classes are also different for XHTML and HTML 5 enables child themes.
This is what i use in the functions file. Credit to Greg Rickaby who wrote the original code i modified.
© 2023 WPEngine, Inc.