Remove Date/Time from Recent Topics Widget

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Remove Date/Time from Recent Topics Widget

Post by axew3 »

np! yes, you can post the line you changed so we can see where to apply the html or css markup

Or, if it is not relevant what you changed (by the default) on the line of code you use to output, then this should work:

change
$value->topic_last_poster_name

into
<strong>$value->topic_last_poster_name</strong>

or
<span class=\"myclass\">$value->topic_last_poster_name</span>
and apply css via .myclass selector

or inline style it
<span style=\"font-weight:900;color:#FF0000\">$value->topic_last_poster_name</span>

[EDITED]
double quotes needs to be escaped in this case
WilboBaggins
User w
User w
Posts: 7
Joined: Wed Sep 02, 2020 12:21 am

Re: Remove Date/Time from Recent Topics Widget

Post by WilboBaggins »

axew3 wrote: Sat Sep 05, 2020 3:07 pm<strong>$value->topic_last_poster_name</strong>
That worked perfectly! Thanks again, this plug-in is great!
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Remove Date/Time from Recent Topics Widget

Post by axew3 »

WilboBaggins wrote: Sat Sep 05, 2020 3:54 pm
axew3 wrote: Sat Sep 05, 2020 3:07 pm<strong>$value->topic_last_poster_name</strong>
That worked perfectly! Thanks again, this plug-in is great!
if you tested

Code: Select all

<span style="font-weight:900;color:#FF0000">$value->topic_last_poster_name</span>
or

Code: Select all

<span class="myclass">$value->topic_last_poster_name</span> 
won't work, because " (double quotes) needs to be escaped (going to update the previous post) ... i didn't test and had not think on this, so right versions are:

Code: Select all

<span class=\"myclass\">$value->topic_last_poster_name</span>
or

Code: Select all

<span style=\"font-weight:900;color:#FF0000\">$value->topic_last_poster_name</span>
Post Reply