For some reason it is stuck at “REFRESHING CURRENCY RATES” screen. Anyone have the same issue?
You have mine. Thanks.
You don’t need to use the localization function on any dynamic content (the_content(), the_title(), any variables, etc). Just use it on the static content/texts in your theme.
Thanks @OriginalEXE, @Webbu. I’ll try that!
Hey, not familiar with the system it uses, but can’t you just load theme options on theme activation hook?
I can load the theme options as normal but the issue is that I can’t set the option type of “checkbox” to be checked by default. So for now, all checkbox options are unchecked after the theme is activated.
For example, I want the checkbox option of “Show date?” to be “Yes” (checked) but still couldn’t find the way to do it. Not sure whether I have missed something or there might be some other workaround.
I’m wondering that is there any way to set the default value for checkbox option type? So once a user activated the theme or plugin, s/he can see that some checkbox options are already checked by default.
I’ve tried to use the “std” value to be the same as the “choices” array value like this:
array( 'id' => 'my_option1', 'label' => 'Display Header?', 'desc' => 'Whether to display the site header with menu bar', 'std' => 'true', 'type' => 'checkbox', 'class' => '', 'choices' => array( array( 'label' => 'Yes', 'value' => 'true' ), ) )
But still got no luck for this method. Is this possible to do with OptionTree? Do you guys have any suggestion?