The MU forums have moved to

switch_theme() setting a theme on account activation (2 posts)

  1. apeatling
    Posted 15 years ago #

    Just wondering if anyone here has any experience using the switch_theme() function?

    I'm trying to automatically activate a theme other than the default when a user activates an account.

    Here's the odd thing, it works, the changes are made in the options table just fine.

    The trouble is when the user views the new blog, they get a blank page (the blank screen of death apparently). When they log into their admin area and then go back everything works fine and the theme appears. Very strange.

    Am I not setting something? I honestly can't see anything changing in the DB to suddenly make it work.

  2. apeatling
    Posted 15 years ago #

    Never mind, turns out it was a theme issue with the index.php file. Phew! That was a nightmare to debug.

About this Topic

  • Started 15 years ago by apeatling
  • Latest reply from apeatling