Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
665 views
in Themes by
The script version is 1.8.8 when I changed my them from Default to Candy? It won't let me login or change back. What database entry do I need to alter or where is a configuration file in the script to return the theme within the database to get the original database running so I don't have to start fresh?

Regards-

Chris A. Russo
Q2A version: 1.8.8
by
+1
Tried removing candy folder from the qa-theme directory?

1 Answer

0 votes
ago by

To set a default theme, look for the following database entry:

  • Table: qa_options

  • Option name: site_theme

  • Option value: Enter the theme folder name you want to use as the default theme.

For example, if your theme folder is named SnowFlat, the entry would be:

INSERT INTO qa_options (title, content)
VALUES ('site_theme', 'SnowFlat');

If the entry already exists, update it instead:

UPDATE qa_options
SET content = 'SnowFlat'
WHERE title = 'site_theme';

Note: Make sure the theme is installed in the Question2Answer qa-theme directory. The folder name must match the theme name.

You can also check the available themes in your Q2A installation before changing the database entry.

...