Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Created new theme but cannot find it under available themes
Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 4:09 pm

I created a new theme in /wp-content/sp-resources/forum-themes and updated all the files as per the directions on http://codex.simple-press.com/.....ng-themes/ but it does not appear under available themes in WordPress.

I have updated storage locations under Integration but that did not help.

Have I missed something?

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 31, 2013 - 4:21 pm

Under WordPress? Are you looking in the right place? Forum admin > Themes panel?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 4:27 pm

Yes, I believe so; under the Themes heading there are 'available themes', 'mobile theme', 'theme editor', and 'theme uploader'. I am looking under 'available themes'.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 4:37 pm

what did you call the directory its in? and does the directory name match the main theme css file name? ie default for directory and default php (or default.css) as the main style sheet file...

Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 4:49 pm

I copied the CSS-only theme: it did not let me copy the whole thing, so I created a new directory, transferred the images, styles and templates folders and the .php and .txt files; i changed the .php in the styles folder, in the .txt file and in the functions.php as per the directions...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 6:44 pm

my question remains though...  you should have changed css-only directory to some other name such as my-theme...  then inside the my-theme/styles folder you should have changed css-only.css to match and be my-theme.css... 

what does changed the php file mean?  its a css file for css only...

and inside spTheme.txt you should have changed

Stylesheet: css-only.css

to be

Stylehseet:  my-theme.css

and I would update the title (first line) too to keep from getting update notices, but it would work without that...

did you do that?

Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 7:21 pm

Yes, I did create a new folder for the new theme (as per step 2 of the directions). The PhP file was in reference to step 3 of the directions (below). I did also change the Stylesheet in the spTheme.txt (as per step 4): I have tried it both with a hyphen between the name and the word 'theme' and all one word. (NB: I did not name it 'my-theme', I named it after the blog; does that matter?)

I did all the steps I understood from the 'creating a theme' page http://codex.simple-press.com/.....g-a-theme/:

1) Double Check Where your Themes are Located

2) Pick a Theme to Copy and Create your New Theme’s Folder

3) Rename your custom theme’s filename:

Within your newly copied folder there will be a ‘styles‘ sub-folder and in there is your main theme file. This must have the same name as the theme so – using the above example – rename ‘default.php’ to ‘mytheme.php’.

4) Edit the spTheme.txt to name your Theme

In your new theme folder is a file names ‘spTheme.txt‘.  You need to edit the header details of this text file and change the theme name to your new theme’s name.

Open up the spTheme.txt file and change the two lines pictured below to the name of your theme and the php file name. Note that if you are copying a CSS only theme then this must point to the CSS file.

For example change “Simple:Press Theme Title: Default”  to: “Simple:Press Theme Title: mytheme” and Stylesheet: default.php change to Stylesheet: mytheme.php

5) Edit the Functions Template to Change Localization

Open spFunctions.php with your editor and change the function names to match your new theme name. If you used the default theme as your starting point then replace all references to ‘spDefault’  in your theme’s name. Please note there may be several occurrences of the theme name in this file. They must ALL be changed to the new name.

Try your new Theme

Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 7:28 pm

Okay, just double checked: in styles it is still a '.css' file.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 8:02 pm

no, the name does not matter...  as long as it used consistently through out...

guess we need to look at some server stuff... those steps have worked for tens of thousands of folks...

I assume when you go to forum - integration - storage locations, you get 2 green marks for the theme locations?

if you compare the permissions of say the default theme with your new theme, do they agree?  check for directories and files for consistency...  some servers may set them differently based on the user...  also check the uid/guid for directory and files between default and yours...

after visiting the available themes panel, can you go to forum - toolbox - error log and see if there are any errors reported?  might find it easiest to clear the error log, then go to available themes and then back to the error log for any new ones...

Avatar
Nicola Short
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 8:17 pm

The integration -> storage locations has not changed: it has always been a green mark and a blue mark.

Where do I check permissions? I've been copying files via FTP and to my knowledge have only changed what is listed in the directions.

I checked the error log: nothing from today when I've tried to change the theme; (there are a couple that seem unrelated (re: plugins) from yesterday).

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626