The theme I am using has a slider (a panel of automatically changing images to display a topic that the user can choose), but it only shows a few slides. I want to extend it to a dozen slides. I did simple text searches to determine which files in the theme are used to provide the functionality to the slider. That was the easy part. I was able to extend the code from the few slides to 12 slides.

Now comes the more difficult and hidden part. As I see it, each slide has two parts that are not hard coded. First, each slide has a caption (a text description). Secondly, each slide has a URL associated with it that is where the browser goes if the user clicks on the slide. These two things are not hard coded in any of the PHP or other files, as far as I can tell. They can be edited by the admin in the administrator settings.

So I assumed that these fields are somehow set and retained in the database, but I did a search on a downloaded copy of the database and I did not find this text.

What additional work do I need to do to complete this task?

I suppose I could just forge ahead. Obviously, this data is being stored somewhere. Maybe they are stored in the database in an encrypted form for security reasons. I could upload the site theme files, but then what?

Do I uninstall the theme and then reinstall it? Do I just deactivate it, and then reactivate it? How do I make my code changes work?

The theme is called "impact_theme" and as far as I can tell all the code for it resides in sites/all/themes/impact_theme.

I made a sub-theme according to Creating a sub-theme. I logged in as administrator, and I set the sub-theme as default theme.

The website immediately crashed. I am unable to see anything apart from HTTP ERROR 500.

What do you think I should do now?

For completeness sake, I will list here the screenshots I made when I was comparing my modifications to the original theme.

I am thinking what I should do now is try to step back and see if I can narrow down the point where the website crashes, but in order to do that, I wonder if it would do any good to just modify the files. I mean, the sub-theme is already set as the default theme.

How can I undo that without being able to log in as administrator?







The website immediately crashed. I am unable to see anything apart from HTTP ERROR 500.

Maybe you forgot to close php tag in 2nd screenshot?

You should turn on error reporting, see Show all errors while developing.

They can be edited by the admin in the administrator settings.

I believe you're referring to the theme settings

Obviously, this data is being stored somewhere.

You can just get the settings value with

$foo_example = theme_get_setting('foo_example');

For Example, I added a settings field to my theme

function mytheme_form_system_theme_settings_alter(&$form, $form_state) {

  $form['mytheme_phone'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Phone Number'),
    '#default_value' => theme_get_setting('mytheme_phone'),


and I just get the value with $phone_number = theme_get_setting('mytheme_phone')

If you look at the theme_get_setting function, it uses variable_get which means these theme settings are saved in the variable table of the database.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.