Vonder
Vonder

Reputation: 4051

Is it safe to switch theme in drupal on my site?

I have a website with Drupal CMS behind it. I use a custom theme and I would like to change it but I am not sure if it is entirely safe, i.e. is it possible to lose some data, design, etc if I switch it back to my theme? What about blocks and their position if the theme uses different blocks layout. Thanks.

Upvotes: 3

Views: 236

Answers (6)

Nikhil
Nikhil

Reputation: 1264

You won't lose any data, though you might have to re-position the blocks as per the new theme layout.

Upvotes: 0

smp7d
smp7d

Reputation: 5032

Like everyone else said, you will not lose data. I would like to add if you switch from a theme that has, say two columns, to a one column theme, the blocks from the second column will have to go somewhere (they would need to be manually set).

Upvotes: 0

JarodMS
JarodMS

Reputation: 121

Like some others have said, you won't lose data, but I've typically had to position the blocks when changing themes.

If you enable the new theme (don't set it to default yet) you can setup the blocks before you go live with it. And if you allow certain users to change themes, you can view and tweak it.

Upvotes: 0

Kevin
Kevin

Reputation: 13226

Blocks are configured per theme. You won't lose any data.

Upvotes: 1

Mad Scientist
Mad Scientist

Reputation: 18553

It should be safe, but you should have a current backup of the database and files anyways. You can (and probably should) set the administration theme to one of the standard themes, so you can't lock yourself out of the admin section if you break your custom theme.

If the regions are named different (or missing in one theme) you may have to move your blocks. The blocks are set seperately for every theme, so just enable the second theme (without setting it a default) and set the blocks for this theme. After that you can set the theme as default.

I use a copy of the website to try out bigger changes to the site, so that I never break the live site. It makes it much easier and safer to just try out stuff.

Upvotes: 2

Radu
Radu

Reputation: 8699

You will not lose any data but your block positioning may change depending on how the theme is set up.

Upvotes: 0

Related Questions