Support Forum
Was giving a go at http://codex.simple-press.com/.....g-a-theme/ and found an error. In step 3 you tell us to rename ‘default.php’ to the same name of our theme and it step 4 you say You can edit any other information in the spTheme.txt file you wish but the first line, naming your theme, is the only needed change. What's missing is that the line stylesheet: default.php is also important, unless you skip step 3.
that is probably a good put and we can clarify that a bit...
Visit Cruise Talk Central and Mr Papa's World
SPQC said
Was giving a go at http://codex.simple-press.com/.....g-a-theme/ and found an error.
Good catch. I added more info to that section and included the php file name change.
Thanks for the heads up.
The screenshot show 1.0.10! Must be coming with next update... 🙂 Where is the changelog?
Also I want to report a little something now that I created my theme folder. Whenever I switch back & forth between Default theme and mine, with the Activate button, there is a message that shows up at the top which is :
Fatal error: Cannot redeclare spdefault_textdomain() (previously declared in /wp/wp-content/sp-resources/forum-themes/SPQC/templates/spFunctions.php:17) in /wp/wp-content/sp-resources/forum-themes/default/templates/spFunctions.php on line 18
This don't seem to have any impact but I'm telling you, just in case you know what's going on. Note that if I click Update Overlay, the message don't show up.
yes, since 1.0.9 of the themes was updated, any new version will be 1.0.10... and we do have a few minor mods - mostly cleanup...
please note, that codex page walked you through changing the spFunctions.php file so you wont get that error... you need to make changes in there...
Visit Cruise Talk Central and Mr Papa's World
spDefault is the textdomain for our default theme... you need to make your own for your own theme...
Visit Cruise Talk Central and Mr Papa's World
right before 'try your new theme'... that step about editing spFunctions.php
Visit Cruise Talk Central and Mr Papa's World
That did it... the 1st time I actually did it, then realized that I lost the translations so I reverted back to original and forgot. oops!
So I did it like stated, which gives :
add_action('init', 'spSPQC_textdomain');
# load the theme textdomain for tranlations
function spSPQC_textdomain() {
sp_theme_localisation('spSPQC');
}
What's wrong?
so what's the problem? still getting the error?
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)