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
child themes creation
Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Oct 10, 2014 - 6:41 pm

I find it in the theme list, but it does not work

1) I created a new folder (default child) in forum themes => wp-content / sp-resources / forum-themes / default child

2) I imported the directory structure of default in the default child folder

3) I changed sptheme.txt adding this content:

Simple:Press Theme Title: Default child
Parent: default
Version: 1.2.9
Theme URI: https://simple-press.com
Description: The Simple:Press default theme featuring traditional forum layout with numerous color layout options
Author: Andy Staines, Steve Klasen and Brandon C
Author URI: https://simple-press.com/custo.....very-need/
Stylesheet: my-child.css
Screenshot: spTheme.jpg
Simple:Press Versions: 5.5.1 and above

default-child-image.pngImage Enlarger

 Is that this is the right procedure or not?

 
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 10, 2014 - 7:56 pm

what does 'does not work' mean?  a few more details please...

in you spTheme.txt file you said the css file name is my-child.css... did you rename the original default css file to that??  the original default css file is actually php...

Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2014 - 5:29 pm

Hi, thanks for the reply.

OK i understand that the style file still dafault.php.

I suppose that i have to copy it and modify it to adjust it to the child theme. But do you know what kind of modification i have to do?

Thanks in advance.

 

BR

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2014 - 5:58 pm

Basically, as long as the spTheme.txt file is correct and the corresponding files are correctly named, you are done. If you have only made changes to the stylesheet for example (default.php) then keeping the folder structure you can remove everything else bar the files that have been changed.

Also, say you have only changed one line of code in the stylesheet, you can remove all other lines as it will be loaded over the top of the parent, and doesn't need everything else.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2014 - 5:59 pm

are you asking about css changes or getting child functional?  assuming latter, delete the default.php file in your child theme and add a new file my-child.css and then add your custom css changes to it...  if other, please clarify...

Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Oct 18, 2014 - 1:47 pm

I have not managed to create the child theme, I'm confused

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 18, 2014 - 4:33 pm

where are you having problems in the article on how to do it?

is there something you are trying to do in the child theme?  or just activate a blank (ie no changes, just use parent) child theme? 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625