[Resolved] dates shouldn't be links ?

Home Forums Support [Resolved] dates shouldn't be links ?

Home Forums Support dates shouldn't be links ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #171281
    ian

    Hi

    Hope you are being a good dad

    I feel that that dates/times should not be links (I could be wrong)
    Issues in the following places (might be others I have not seen)

    On the home/posts page if you have a date shown the date link takes you to the post
    Not the end of the world but slightly confusing if there are more than one post published on the same day. In which case it should probably take you to all posts on that day.

    On a single post page if you have a date shown the date link takes you to the post ie takes you nowhere ?

    When comments have been left the date/time is shown this is a link that takes you back to the comment ?

    My suggested solution is that these date/times should just be plain text
    Also would like a way to remove time but leave date when comments are left. I cant work out if CSS can do this

    I hope that makes sense

    Ian

    #171303
    Tom
    Lead Developer
    Lead Developer

    Hi Ian,

    This is pretty standard in WP blogging, the reason is it gives Google and other search engines one more link to your post to follow.

    It also makes sure that if you don’t have a post title, Google can still access your post via the date.

    Of course, you can remove it with this function: https://gist.github.com/generatepress/429d8f954419921f564f

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    #171580
    ian

    Hi

    Sorry
    I have to disagree links should not be there that can confuse the user just to help google and SEO

    The function you pointed does work thank you
    but it does not deal with date/time link when comments have been left ?
    also won’t I now have to be careful when GP is updated ?

    My preferred solution would be for next version of GP in blog content to allow the following for date

    HIDE
    SHOW DATE/TIME WITH LINK
    SHOW DATE WITH LINK
    SHOW DATE/TIME WITH NO LINK
    SHOW DATE WITH NO LINK

    FYI
    At present the Date Show/Hide has no effect in the comment area I think it probably should

    Depending on type of Blog (frequency of posting) is why TIME is sometimes required as well as date
    Don’t think this will cause any legacy issues

    Maybe I should have put this in suggestions sorry

    Ian

    #171699
    Tom
    Lead Developer
    Lead Developer

    If you used these directions you won’t have to worry about updates: https://generatepress.com/knowledgebase/adding-php-functions/

    It’s definitely something for me to think about. Like I said, it would need to know whether the post had a title or not, if there’s no title, WordPress.org requires something to link to the full post – in this case (and almost every other WordPress theme), it’s the date.

    #171920
    ian

    Hi Further thoughts

    You said

    It’s definitely something for me to think about. Like I said, it would need to know whether the post had a title or not, if there’s no title, WordPress.org requires something to link to the full post – in this case (and almost every other WordPress theme), it’s the date.

    You already have show/hide date so if there is no title this is already a problem ?
    I just want to show the date but no link

    you pointed out

    Of course, you can remove it with this function: https://gist.github.com/generatepress/429d8f954419921f564f

    Can this be modified so that the date shown can include the time?

    Also can something similar be done for the date/time shown with every comment
    ie no link just date no time

    Many thanks again
    Ian

    • This reply was modified 8 years, 2 months ago by ian.
    #172327
    Tom
    Lead Developer
    Lead Developer

    Yes, if you choose to remove the date completely, you’re choosing to remove that link as well.

    This function will remove the link and add the time: https://gist.github.com/generatepress/0f8869c4a1b96f8e1ca1

    The link in the comments makes it possible for people to link to specific comments, which can be very important for user experience.

    You can add this function to remove it: https://gist.github.com/generatepress/21b8e4b706caf59470b7

    When it comes to adding options, I need a good push from multiple people to consider it – currently you’re the only person to ever want these changes, so that’s why we have these awesome functions we can overwrite 🙂

    #172488
    ian

    Hi

    Thanks for all that think it gives me all the options I need
    Need some time to try a few things out

    Totally understand you not wanting add options to GP it is one reason I like it because it is so lean but powerful.
    Perfecting happy to modify with CSS and by overwriting functions when I can work out how and where.

    That is where your amazing support comes in

    My suggestions were just that MINE you have the overview of what is required to keep GP what it is and keep the majority happy

    Ian

    #172489
    ian

    Forgot to ask how long does the code stay in “gist.github.com”
    Or should I copy it somewhere locally soon ?

    #172530
    Tom
    Lead Developer
    Lead Developer

    It will stay there forever 🙂

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