Support Forum

How to remove Special Rank Text

ST Stang5_0
Stang5_0
Member

Hello,

Can you please tell me how I can remove Special Rank text below the badge and just go with badges?

Thanks,

Stang

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Sure. This needs a small and simple edit to the theme template,. In this case the spTopicView.php template in the /templates folder of the Simple:Press theme you are using.

Locate the template display function – sp_PostIndexUserSpecialRank() – in that template. In ‘default’ it will look like this:

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');

You just need to add an argument to the list like this:

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&showTitle=0');

Exactly like this in fact.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/) – or – if using the latest version – you could create a child theme.

ST Stang5_0
Stang5_0
Member

I have tried that in default – which is what I am using, and there seems to be no change.  It is in wp-content/sp-resources/forum-themes/default/templates/

YS Yellow Swordfish
Yellow Swordfish
Member

I can guarantee that this does work. Just retested to make sure. As long as you really do mean the Special Ranks… Can you paste the code change you made here so we can look at it?

ST Stang5_0
Stang5_0
Member

I figured it out, thanks. Can you tell please how I can accomplish the same now on the members list?

MP Mr Papa
Mr Papa
Member
There is not an easy way to remove it… so remove with css… add this to your theme:

#spMainContaine #spMemberListSection span.spInRowRank {display: none;}