- This topic has 16 replies, 3 voices, and was last updated 7 years, 10 months ago by
Tom.
-
AuthorPosts
-
July 14, 2018 at 10:46 pm #623909
Ravi Dixit
I have some small queries which I need to work on but don’t know how?
1. How can I show the author image with the Author name on every single post?
2. How can I underline the links in the post, pages and custom post types?
3. How to show the last updated date instead of showing the published date?
4. How can I show “Updated:” before the date?Thanks In Advance…
Ravi DixitJuly 15, 2018 at 4:49 am #624058David
StaffCustomer SupportHi there,
these topics should help:
Add author Image
https://generatepress.com/forums/topic/add-author-photo-for-each-post-in-blog-home/#post-335202Underline Links
https://generatepress.com/forums/topic/underline-of-text-containing-links-in-blogposts/#post-616645Updated date:
https://generatepress.com/forums/topic/modified-date/#post-131381Text before Updated date:
https://generatepress.com/forums/topic/modified-date/#post-348329July 15, 2018 at 6:46 pm #624489Ravi Dixit
Underline Links:
I only want to underline the links only of content(post, page), but the code you given in that post, made everything underline like post title on the homepage, author name, date etc.You can see the example here: https://www.searchenginejournal.com/small-business-seo-improve-rankings/260141/
Text Before Updated date :
This css codes I found of this forum, but will it show the updated date to both the search engine and humans?
.posted-on .updated {
display: inline-block;
}.posted-on .updated + .entry-date {
display: none;
}
.posted-on .updated:before {
content: “Last updated: “;
}Author Image:
Where to add the code you gave, can you please explain the steps? I want to show a small round image…July 15, 2018 at 9:19 pm #624536Tom
Lead DeveloperLead Developer1. That underline code David provided should only target your post content – not the meta. Can you add it so we can see why it’s targeting other areas?
2. Here’s our docs page on this: https://docs.generatepress.com/article/show-the-updated-post-date/
Doing this will show it to both search engines and humans.
3. The code can be added using these instructions: https://docs.generatepress.com/article/adding-php/
To make it show up small and round, you can add this CSS:
.byline img { width: 25px; height: 25px; border-radius: 50%; position: relative; vertical-align: middle; margin: 0 10px 0 0; }CSS can be added like this: https://docs.generatepress.com/article/adding-css/
July 16, 2018 at 1:26 am #624602Ravi Dixit
I have added the code but it is underlining every link even post title and date. I can’t make it live not because it will be not good from the users’ point of view.
that’s why I am sharing the screenshot here: https://wp.me/a9Xq5P-5bJuly 16, 2018 at 4:52 am #624689David
StaffCustomer SupportHi there,
If you edit the original Topic, there is a Site URL Field which only the support team can see.
But it looks like you are using WP Show Posts.If all your links in the content are within a paragraph then you can do this:
.entry-content p a, .entry-content p a:visited, .entry-content p a:hover { text-decoration: underline; }July 16, 2018 at 2:48 pm #625202Ravi Dixit
I have added the code for showing the updated date, and it is working fine. But the updated post doesn’t come in at the top in archives.
And also this is not working
.posted-on .updated:before {
content: “Last updated: “;
}Underline the links
The code you gave is working fine as I want to should be. But there is one problem. it is not underlining the links which I use bulletins for…
as shown in the image: https://wp.me/a9Xq5P-5dJuly 16, 2018 at 9:08 pm #625310Tom
Lead DeveloperLead DeveloperInstead of that underline code, try this:
.single .entry-content a, .single .entry-content a:visited, .single .entry-content a:hover { text-decoration: underline; }That updated code won’t work for WP Show Posts. You’d have to do this: https://wpshowposts.com/support/topic/updated-date-meta-from-generatepress/#post-3920
July 27, 2018 at 9:56 pm #634438Ravi Dixit
The CSS code you gave for showing updated date instead of published date is working great but it is not working with the WP show post. I am showing 3 latest posts on my homepage using the WPSP plugin where the updated date is not showing but when I open the post it is showing the updated date.
I want to show the updated date on both.
And one thing more, Posts are not upcoming up after updating they show on the same place where they were before updating.
I want them to show according to date.
For ex: if I updated a post which was published two months ago but I updated it today so it should come on first page as the recent post.July 28, 2018 at 7:18 am #634650Tom
Lead DeveloperLead DeveloperWP Show Posts has a completely different structure: https://wpshowposts.com/support/topic/remove-from-meta-date/#post-5049
In WP Show Posts, you can set the “Orderby” option to “Modified” in the “More settings” tab.
August 2, 2018 at 2:50 pm #638970Ravi Dixit
.single .entry-content a,
.single .entry-content a:visited,
.single .entry-content a:hover {
text-decoration: underline;
}Hey, Tom!
Thanks for sharing this 🙂 . It is working really great but one thing I need more. I want the same for the pages also.
What changes do I need to make into it?
Please let me know…
Thanks,
Ravi Dixit 🙂August 2, 2018 at 4:51 pm #639033Tom
Lead DeveloperLead DeveloperTry using this:
.single .entry-content a, .single .entry-content a:visited, .single .entry-content a:hover, .page .entry-content a, .page .entry-content a:visited, .page .entry-content a:hover { text-decoration: underline; }August 2, 2018 at 8:00 pm #639115Ravi Dixit
Thanks, Tom!
You are awesome man 🙂
August 2, 2018 at 8:32 pm #639146Ravi Dixit
Hey, Tom!
It is underlining everything on my blog page and deals page, even the WPSP title name and meta terms.
August 3, 2018 at 3:02 am #639326David
StaffCustomer SupportCan you share a link to the site, so we cans see which pages to exclude?
-
AuthorPosts
- You must be logged in to reply to this topic.