Site logo

[Support request] Some small queries

Home Forums Support [Support request] Some small queries

Home Forums Support Some small queries

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #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 Dixit

    #624058
    David
    Staff
    Customer Support
    #624489
    Ravi 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…

    #624536
    Tom
    Lead Developer
    Lead Developer

    1. 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/

    #624602
    Ravi 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-5b

    #624689
    David
    Staff
    Customer Support

    Hi 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;
    }
    #625202
    Ravi 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-5d

    #625310
    Tom
    Lead Developer
    Lead Developer

    Instead 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

    #634438
    Ravi 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.

    #634650
    Tom
    Lead Developer
    Lead Developer

    WP 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.

    #638970
    Ravi 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 🙂

    #639033
    Tom
    Lead Developer
    Lead Developer

    Try 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;
    }
    #639115
    Ravi Dixit

    Thanks, Tom!

    You are awesome man 🙂

    #639146
    Ravi Dixit

    Hey, Tom!

    It is underlining everything on my blog page and deals page, even the WPSP title name and meta terms.

    #639326
    David
    Staff
    Customer Support

    Can you share a link to the site, so we cans see which pages to exclude?

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.