Thread Starter
jpr105
(@jpr105)
I answer my own comment
So I modified “happy-elementor-addons/widgets/post-tab/widget.php” like that
Before
<div class="ha-post-tab-meta">
<span class="ha-post-tab-meta-author">
<i class="fa fa-user-o"></i>
<a href="<?php echo esc_url( get_author_posts_url( $post-
>post_author ) ); ?>"><?php echo esc_html(
get_the_author_meta( 'display_name', $post->post_author ) );
?></a>
</span>
<?php
$archive_year = get_the_time( 'Y', $post->ID );
$archive_month = get_the_time( 'm', $post->ID );
$archive_day = get_the_time( 'd', $post->ID );
?>
<span class="ha-post-tab-meta-date">
<i class="fa fa-calendar-o"></i>
<a href="<?php echo esc_url( get_day_link( $archive_year,
$archive_month, $archive_day ) ); ?>"><?php echo get_the_date(
"M d, Y", $post->ID ); ?></a>
</span>
</div>
After
<div class="ha-post-tab-meta">
<?php
$archive_year = get_the_time( 'Y', $post->ID );
$archive_month = get_the_time( 'm', $post->ID );
$archive_day = get_the_time( 'd', $post->ID );
?>
<span class="ha-post-tab-meta-date">
<i class="fa fa-calendar-o"></i>
<?php echo get_the_date( "j F Y", $post->ID ); ?>
</span>
</div>
It works like a charm but when I change tabs, the old layout comes back … like there is a ghost in this code …
I don’t understand and it’s beyond my capabilities
Strange isn’t it?
Hello @jpr105
I can’t 1) make it NOT clickable 2) change its display format (YYYY-MM-DD)
1) To make the date meta unclickable you can use CSS like:
.ha-post-tab-meta-date {
pointer-events: none;
}
2) We don’t recommend changing the plugin’s core for customization as this will revert after an update. However, I assume the changes are not affecting cause the date & the inside content is rendering after the Ajax call.
👉 Regarding the “Date Format,” I have kept this on our internal bucket list to facilitate a user controller to change it on their own. You can use this if we bring this feature with our plugin soon.
I hope this will helps.
Regards.
Thread Starter
jpr105
(@jpr105)
Hello @aurangajeb
Thank you for your reply
I completely agree with you about changing the code.
Thanks for your CSS tip, the date is no longer clickable!
So, thanks to the CSS I was able to
1) make the author’s name disappear
2) make the date not clickable
Now I just have to wait for these settings to be integrated in the widget interface
Thanks in advance
Regards
Hi,
Thanks for the acknowledgment.
You can taste it once we introduce this. Currently, it’s under our reader. I hope the team will review this feature and take further action.
Thanks.