- XF Compatibility
- 2.2.x
- 2.3.x
- Summary
- This add-on allows users to customize their forum's thread prefixes by defining a custom background color, which is useful for those who want to distinguish different categories or topics within threads.
Customize their forum's thread prefixes by defining a custom background color, which is useful for those who want to distinguish different categories or topics within threads
(Example of template modification)
Setup step 1:
Go to Forums -> Thread prefixes and define a new thread prefix.
Select Other.
Enter label label-- and the name of the prefix.
Save
Setup step 2:
Enable development mode.
Go to Appearance -> Template modifications and edit the Prefix style manager.
Add &.label--examplePrefix { .m-labelVariation(white, #006600); } to the Replace box.
Save
Question and answers:
Q: How do I enable development mode?
A: Install the Development mode options add-on. After editing the Template modification, be sure to disable development mode.
Q: Can I add more than one code to the template modification?
A: Yes add one line for each thread prefix that you are using the Option to define the thread prefix color.
(Example of template modification)
Setup step 1:
Go to Forums -> Thread prefixes and define a new thread prefix.
Select Other.
Enter label label-- and the name of the prefix.
Save
Setup step 2:
Enable development mode.
Go to Appearance -> Template modifications and edit the Prefix style manager.
Add &.label--examplePrefix { .m-labelVariation(white, #006600); } to the Replace box.
Save
Question and answers:
Q: How do I enable development mode?
A: Install the Development mode options add-on. After editing the Template modification, be sure to disable development mode.
Q: Can I add more than one code to the template modification?
A: Yes add one line for each thread prefix that you are using the Option to define the thread prefix color.