Can I force a theme? I mean that the user cannot change intentionaly or accidentaly the theme I made for that website.
I would like to do this from the core because I also want to lock all updates.
2 comments
Comments are closed.
Can I force a theme? I mean that the user cannot change intentionaly or accidentaly the theme I made for that website.
I would like to do this from the core because I also want to lock all updates.
Comments are closed.
Lot of useless comments on this post from what seems like a pretty simple question.
change below
$theme_directory_name = 'twentyfourteen';
to your theme… thats all you have to do. First function sets your theme no matter what. Second one disables interface to edit themes.Theres other ways too :
You can also set the default theme constant in your wp-config.
Lastly, remove themes menu from admin:
You could create a custom admin role and remove these standard admin capabilities:
Or simply force them to use the Editor role.