Page 2 of 2

Re: Remove Date/Time from Recent Topics Widget

Posted: Sat Sep 05, 2020 3:07 pm
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

Re: Remove Date/Time from Recent Topics Widget

Posted: Sat Sep 05, 2020 3:54 pm
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!

Re: Remove Date/Time from Recent Topics Widget

Posted: Sat Sep 05, 2020 4:57 pm
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>