Closed (works as designed)
Project:
AdaptiveTheme
Version:
6.x-3.0-rc2
Component:
CSS/HTML
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2011 at 06:45 UTC
Updated:
6 May 2012 at 15:13 UTC
I don't know if this a symptom of a larger issue but when I first create my site I have to actually go to the theme's configuration page for the show-on-focus class to be added to the skip-link div. This, despite the default setting for skip navigation display being set to focus.
How can I ensure this works without requiring the site owner to configure the theme?
Comments
Comment #1
Jeff Burnz commentedYou can't, its just the way it works - you must visit the theme settings page at least once and save the settings.
Comment #2
eft commentedJeff, I don't even have to save the settings for the change to take place. So there must be some code that is run when I simply navigate to the page - creating a cache of theme settings or something. I am seeking the programmatic equivalent of clicking configure and navigating to that page.
Comment #3
eft commentedSo is there any way to run this to add the theme settings to the variable table?
adaptivetheme_theme_get_default_settings('adaptivetheme_MyTheme');Comment #4
eft commentedJeff,
I put the following code in my profile
This helped to pre configure the theme variables so that the various classes were added to HTML page elements.
Can you comment if this looks like a reasonable approach?
Comment #5
Jeff Burnz commentedI dont really want to be running db updates from the theme, its not really sustainable.