Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: bod22 on January 13, 2023, 02:06:37 PM

Title: Symbol before a child board title
Post by: bod22 on January 13, 2023, 02:06:37 PM
Is it possible to have somehow this symbol before each child board title and not only the first one, e.g. instead of a comma in this case?

(https://i.imgur.com/vNOKCTK.png)
Title: Re: Symbol before a child board title
Post by: Kindred on January 13, 2023, 02:25:56 PM
you'd have to change the template file - boardIndex.template.php
Title: Re: Symbol before a child board title
Post by: bod22 on January 13, 2023, 04:06:11 PM
Any clue what should I find there and replace or edit?
Title: Re: Symbol before a child board title
Post by: Antechinus on January 14, 2023, 07:01:28 PM
Quote from: Kindred on January 13, 2023, 02:25:56 PMyou'd have to change the template file - boardIndex.template.php
No, you do not. Not in 2.1. A template change is only necessary if the site in question is still on 2.0.x.
Title: Re: Symbol before a child board title
Post by: Antechinus on January 14, 2023, 07:06:06 PM
Quote from: bod22 on January 13, 2023, 04:06:11 PMAny clue what should I find there and replace or edit?
If you are using SMF 2.1 the commas are coded here:

Code (index.css) Select
.children span::after {
  content: ", ";
}

You can change that content to any other symbol, and add paddings or spaces as you wish.
Title: Re: Symbol before a child board title
Post by: bod22 on January 15, 2023, 09:43:17 AM
Unfortunately, I'm still using SMF 2.0.18.
Title: Re: Symbol before a child board title
Post by: Steve on January 15, 2023, 01:15:20 PM
Why have you not upgraded. Just curious.
Title: Re: Symbol before a child board title
Post by: bod22 on January 17, 2023, 02:04:49 PM
I'd like to upgrade but I use this great theme https://custom.simplemachines.org/index.php?theme=2917 created by @SychO and unfortunately it's not compatible with SMF 2.1 ;/ That's why I'm still operating on 2.0.18.