Notifications
Clear all

[Solved] Remove the post creation date from the RecentPost widget

25 Posts
5 Users
4 Likes
4,071 Views
Chris
Posts: 3650
(@chris)
Famed Member
Joined: 3 years ago
 
It can be done by CSS code without making any changes in the core file. I see you've already made the core changes so I recommend revert it and use the following CSS code:
#wpforo #wpf-widget-recent-replies .wpforo-list-item-right p.posttext, 
#wpf-widget-recent-replies .wpforo-list-item-right p.posttext{
   display:none;
}
Posts: 530
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 5 years ago

Hello. The CSS doesn't seem to be working with the recent update, what update does it need to work again?

6 Replies
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@central4allgmail-com,

The CSS does what it should, removing the post content from the Recent Posts Widget.

(@central4allgmail-com)
Joined: 5 years ago

Prominent Member
Posts: 530

@chris Am i the only one who can see the the white letters?

https://prnt.sc/RpNwG-5hD-qB

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@central4allgmail-com,

Try this:

 .wpforo-widget-content .wpforo-list-item-right p.posttext{
   display:none !important;
}
(@central4allgmail-com)
Joined: 5 years ago

Prominent Member
Posts: 530

@chris Hello. I want to remove the "From" and the date from the widget too (white letters), but keep the name of the poster. I see the class postuser, but if I make add display:none to that it will also remove the poster name. Any ideas?

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@central4allgmail-com,

Also add this:

.wpforo-widget-content .wpforo-list-item-right .postuser > font:nth-child(1),
.wpforo-widget-content .wpforo-list-item-right .postuser > font:nth-child(3),
.wpforo-widget-content .wpforo-list-item-right .postuser > span font{
   display:none !important;
}
(@central4allgmail-com)
Joined: 5 years ago

Prominent Member
Posts: 530

@chris Didn't work I'm afraid, white text is still there

I removed the date from recent posts by removing this  text: , <span style="white-space: nowrap;"><?php esc_html( wpforo_date( $post['created'] ) ) ?></span> from the RecentPosts.php file.

I can't find a way to remove it from RecentTopics though

Posts: 1
(@edisonimplant)
New Member
Joined: 11 months ago

You can do it by CSS

2 Replies
(@central4allgmail-com)
Joined: 5 years ago

Prominent Member
Posts: 530

@edisonimplant As you can see in the replies above I'm using css provided by a wpforo admin but it doesn't seem to work. If you know of a css code that can remove what I want to remove, I'm all ears.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@central4allgmail-com,

Please provide the URL and a screenshot, I think I got you wrong.

Posts: 530
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 5 years ago

https://prnt.sc/T6r4zJ1JZOcn

https://adultforum.gr/

2 Replies
Tutrix
(@tutrix)
Joined: 4 years ago

Noble Member
Posts: 1212

@central4allgmail-com 

.wpforo-widget-content .wpforo-list-item-right .postuser span{display: none}

 

(@central4allgmail-com)
Joined: 5 years ago

Prominent Member
Posts: 530

@tutrix thank you worked perfectly

Page 2 / 2