Support Forum

Editing "recent forum posts" widget

UN
Unknown
Member

Hi guys,

 

I’d like to remove the date stamp from the Recent Forums widget and get everything on 2-3 lines (the first line displays the person’s topic in black while the second line shows “posted in X forum by X name”). I had everything showing perfectly with 4.5, but it looks like there will be some tinkering to get things the same.

 

Is there an easy fix for this?

14 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well did you look at the options on the widget dialog? You can remove the date there.

if you need to change styling then you have to understand that we can not provide the CSS for this as it needs to be placed in your wp theme. So by default it will inherit the Wp theme styling

UN
Unknown
Member

Yes, unticking the date box only removes the “since” date, but the actual post date remains.

YS Yellow Swordfish
Yellow Swordfish
Member

I was referring to the display order setting

BR Brandon
Brandon
Member

If you wish completely remove showing a specific component then you can remove it from the Display order.
For example if you wish to not include the date then you would remove the “D” from the  “TFAUD”  display order

Sidenote for admins – Info added to codex. http://codex.simple-press.com/codex/simplepress-api/functions-and-tags/widgets/

UN
Unknown
Member

Sorry guys, I see there was an explanation for it that I missed.

 

Keep up the good work!

UN
Unknown
Member

Bold <b></b> and italics <em></em> work beautifully, but I can’t get the font color to change. Are we stuck with black?

MP Mr Papa
Mr Papa
Member

font color in what???  the recent posts widget?  you need to add css styling to your wp theme that covers the elements in the widget and you can change the color to whatever you want…

UN
Unknown
Member

Hi Mr. Papa,

 

Yes, but coding in the widget has changed and resulted in different text.

Before 5.0, the title in the recent forum post widget showed as black, while the details (posted in/ by) were grey. After downloading 5.0, the TFAUD titles show as grey, while their details display as black. I’d like the details to be grey again so they don’t scream so loud.

 

Hope this makes sense,

 

John

YS Yellow Swordfish
Yellow Swordfish
Member

The widget/tag code does not, and never has, specifed any colours whatsoever. This is inherited from your WP theme. if you want to change these then you will need to add the CSS required to your Wp theme.
If you look in the template tags SP pluign folder /library/sp-RecentPosts-tag.php file – which is what displays the results – you will see the classes listed at the top of the function. These are the classes that will need to have your own specific styling added.

UN
Unknown
Member

I see the problem,

 

The forum and the topic are both links, hence they are displaying the same. Can we remove the forum link while keeping the topic link like in previous versions? It seems that’s the only combination missing (separate links to topic and forum “forum”, all link to the topic “all”, and no links ”   ” are all there).

 

I don’t think I can code these separately in my css.

YS Yellow Swordfish
Yellow Swordfish
Member

You have the option in the display order to show what you like.

MP Mr Papa
Mr Papa
Member

you want the forum link and the topic link to be different colors? odd, but doable…

in the widget options, there is a before forum text and before topic text…  add in some sort of span with a class you can style… ie

<span class=’spForumLink’> or <span class=’spTopicLink’>

and then close it in the after forum and after topic text…

</span>

then style the .spForumLink and .spTopicLink how you want…  untested but should work…