ForumSpark Support app Faster, straight from your home screen. Tap Share, then Add to Home Screen.
Add ForumSpark Support to your home screen
  1. Tap Share at the bottom of Safari.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. ForumSpark Support now opens like an app.
  1. Tap Install, or open the browser menu.
  2. Choose Install app or Add to Home screen.
  3. Confirm. ForumSpark Support now opens like an app.

Forum marker variables not displaying right

Korok's Avatar
Korok · in Support
3 replies 599 views

Hello!

Sorry, I have a second question. The new forum marker variables aren't displaying for me correctly. I'm not sure if I'm using them right. I want to use the font-awesome ones. I suspect I'm using it incorrectly. This is what I have:

  <div class="forum-marker">
     {{ forum.marker_icon }}
  </div>

I've tried all of these ones:

{{ forum.marker_type }}
{{ forum.marker_icon }}
{{ forum.marker_read_icon }}
{{ forum.marker_unread_icon }},

They preview as words like this:

0

I posted two supports at once a few days ago, so I figured I'd check in to make sure this one didn't get missed. c:

No rush, though. Please take the time you need.

0

I’ll have a look today and see what seems to be the issue. 😊

0

Right, sorry for the long wait.

those variables hold the Font Awesome class string (e.g. fa-solid fa-battery-three-quarters), not rendered HTML. That's why printing them shows the words.

Wrap them in an <i> tag:

<div class="forum-marker">
    <i class="{{ forum.marker_icon }}"></i>
</div>


forum.marker_icon automatically resolves to marker_read_icon or marker_unread_icon based on the forum's read state. Note: only free fa icons work here. Not the pro versions.

You might also like...

Topic Replies Views Last reply
Forum marker variable? In Support, started by Korok, 7 months ago
2 470
Korok's Avatar
Korok7 months ago
How to Get New Members on Your Forum Spark Community From the blog, started by Shawn, 3 weeks ago
42
Shawn's Avatar
Shawn3 weeks ago
Grid and Feed: two new looks for your forum home From the blog, started by Cedric, 3 months ago
40
Cedric's Avatar
Cedric3 months ago
Change Individual Forum Markers Related, started by Cory, 8 months ago
0 163
Cory's Avatar
Cory8 months ago