• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Changing style IDs

faeronsayn

Well-known member
#1
Okay I just decided to customize a theme and use it for a part of my forum, which forces users to default to my theme. So the one that I previously had is going to be switched with the one that I have customized. Problem is this, I have a lot of subforums in that section and I am not planning on going to each one and changing the style from there.

Is it somehow possible to switch the Style ID's so my new theme is now default for that whole section because it has the same style ID as my old one? Is that possible?
 

Brogan

XenForo moderator
Staff member
#2
Try this:

Code:
UPDATE xf_node
SET style_id = 3
WHERE style_id = 2;
 
UPDATE xf_node
SET effective_style_id = 3
WHERE effective_style_id = 2
So 2 is the existing style and 3 is the style you want to change it to.

Take a backup of that table first, just in case.
 

faeronsayn

Well-known member
#3
Try this:

Code:
UPDATE xf_node
SET style_id = 3
WHERE style_id = 2;
 
UPDATE xf_node
SET effective_style_id = 3
WHERE effective_style_id = 2
So 2 is the existing style and 3 is the style you want to change it to.

Take a backup of that table first, just in case.
We don't need to specify which node we want to change the style ID of ? Or does it just look for a node that has a style ID of 2 and changes it to 3 ?