Support ForumLink the date of the blog post to the detail instead of daily archive – Support Forum https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/feed Sun, 20 Apr 2025 15:05:42 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12284 <![CDATA[Link the date of the blog post to the detail instead of daily archive]]> https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12284 Thu, 24 Mar 2016 20:01:40 +0000 Tivano Hey,

The Kopy theme posts the date of the blog post as a link to an archive.
Is it possible to link it to the blog post instead?

]]>
https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12285 <![CDATA[Reply To: Link the date of the blog post to the detail instead of daily archive]]> https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12285 Thu, 24 Mar 2016 20:05:07 +0000 Tivano

Homepage

When you click on the date under “Una buona storia” you’re redirected to a daily archive.
I’d like it to just link to the post since the daily archive doesn’t really add something to the website and works a bit confusing.

]]>
https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12304 <![CDATA[Reply To: Link the date of the blog post to the detail instead of daily archive]]> https://support.ishyoboy.com/forums/topic/link-the-date-of-the-blog-post-to-the-detail-instead-of-daily-archive/#post-12304 Tue, 29 Mar 2016 05:40:59 +0000 IshYoBoy Hey,

To achieve that you can override the “ishyoboy_get_masonry_post_details()” function located in this file:

wp-content/themes/kopy/assets/functions/theme-plugin-functions.php

It can be found on lines 661 to 755. So just copy the whole function into your child theme’s functions.php file (this will re-define it) and change its code to link to the post link instead of date archive. Please use a child theme (a starter one is provided by us) to avoid losing your changes in the future (About Child Theme).

Instead of having this line:
$return .= '<a href="' . get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j')) . '">' . get_the_time(get_option('date_format')) . '</a>';

update it to:
$return .= '<a href="' . get_permalink() . '">' . get_the_time(get_option('date_format')) . '</a>';

Or remove the info completely ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>