Jump to content

Recommended Posts

Posted (edited)

Featured topics should be the ones you want to focus some attention at. Yet, currently they are only highlighted briefly in topic list with a small icon and only if you create a dedicated feed for them. I use both of these in my community and the results are underwhelming. I want featured topics to be more prominent. 

It would be much more eye catching and attention grabbing if we can highlight the background of such topics in activity stream or maybe in topic list as well. Something like this (click on the link, attaching images is currently buggy):

 

 

 

 

 

 

 

 

 

I've seen it on reddit and it really makes topics pop out in a prominent, but not overly invasive way. 

Would something like this be easy to achieve, maybe as a 3rd party mod too?

Edited by jair101
  • 3 months later...
Posted
On 6/13/2020 at 9:43 AM, jair101 said:

Would something like this be easy to achieve, maybe as a 3rd party mod too?

There might be plugins providing this functionality, but it's quite easy to achieve yourself by simply editing your theme.

In your theme, find the file forums > front > forums > topicRow and add the following inside the class attribute on line 50 (the <li> element):

 {{if $row->mapped('featured')}}customFeatured{{endif}}

Then, edit your custom.css file to set a background color for the new customFeatured class:

.customFeatured {
	background-color: pink;
}

This should give all featured topics a nice background color.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...