- This topic has 46 replies, 5 voices, and was last updated 3 years, 2 months ago by Elvin.
-
AuthorPosts
-
February 1, 2021 at 9:06 pm #1642376Rahul
Hi, I want to show “Author/updated date” below the post title. How can I do that with the “GP theme”?
February 2, 2021 at 3:27 am #1642671ElvinStaffCustomer SupportHi there,
You can try using the CSS and/or PHP snippets in this brief documentation:
https://docs.generatepress.com/article/show-the-updated-post-date/February 2, 2021 at 6:22 am #1642859RahulI have applied these codes, but it doesn’t work. And I want to show Author name and updated date.
February 2, 2021 at 9:12 am #1643225DavidStaffCustomer SupportHi there,
you can set the post meta to be displayed in Customizer > Layout > Blog:
https://docs.generatepress.com/article/blog-content-layout/
Theres separate options for Archives and Posts.
February 2, 2021 at 7:44 pm #1643686RahulAlready I enabled all options from these two “Archives + Single” But nothing shows there. You can check the site I attached before.
February 2, 2021 at 8:06 pm #1643695ElvinStaffCustomer SupportAlready I enabled all options from these two “Archives + Single” But nothing shows there. You can check the site I attached before.
I’ve checked the site and time elements doesn’t seem to have the time strings rendered.
This usually happens when users set a custom format with a syntax issue for the date set under
Dashboard > Settings > General
.You can try checking this out if this is the case. Try testing w/ the default time format.
Let us know.
February 3, 2021 at 1:40 am #1643918RahulI changed the time format with date, but nothing changed. If you want I can add you to my site for a better investigation.
February 3, 2021 at 4:11 am #1644048DavidStaffCustomer SupportIn your Customizer > Additional CSS you have this rule which is hiding the meta:
.entry-meta { display: none; }
Delete that to display the meta.
February 4, 2021 at 4:57 am #1645415RahulYes, it’s working now. But before the date, I want to add this text “Last updated on” How can I add this? And the updated date will show on google search?
February 4, 2021 at 6:54 am #1645708DavidStaffCustomer SupportThis doc provides the PHP Snippet for only displaying the last updated date:
https://docs.generatepress.com/article/generate_post_date_show_updated_only/
And to add the Last Updated label before it you would add this snippet:
add_filter( 'generate_inside_post_meta_item_output', function( $output, $item ) { if ( 'date' === $item ) { return 'Last updated on '; } return $output; }, 50, 2 );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Those changes will make it so only the last update timestamp is output …. what google does with that data is up to google
February 4, 2021 at 7:27 am #1645761RahulWithout a plugin can I put those codes? And where should I put in my site?
February 4, 2021 at 8:40 am #1645850DavidStaffCustomer SupportThat document: https://docs.generatepress.com/article/adding-php/ explains the two methods. The alternative to the Code Snippets plugin is to install a child theme:
https://docs.generatepress.com/article/using-child-theme/
And the snippets go in the Child Themes functions.php file.
February 4, 2021 at 9:21 am #1645891RahulHi, I just installed the “Code Snippet” plugin and I opened the “Order snippets by date” But I didn’t put any codes in the plugin. Is it right? You can visit the site.
February 4, 2021 at 11:23 am #1646002LeoStaffCustomer SupportYou will need to click Add New and paste the code David provided, then click Save and Activate:
https://www.screencast.com/t/HA4LfT2EzA
https://www.screencast.com/t/xNhsTy5sAFebruary 4, 2021 at 9:40 pm #1646399RahulThank you so much. I have added the code, and still waiting if it really works or not.
However, there is any option to add “Amazon Disclaimer Text” under the post image? You should check the image https://drive.google.com/file/d/1Mta74r1T2s2LnfAtzBFx1iGVq_GeRvOn/view
or you can view the site I attached.
-
AuthorPosts
- You must be logged in to reply to this topic.