IMPORTANT: Use a Child Theme

Any questions about styling and customising the layout, changing the number of columns, changing the number of sliding images and so on.

IMPORTANT: Use a Child Theme

Postby wayne » Sat Jul 28, 2012 12:04 am

If you plan on making any changes to the theme, use a child theme - don't change the original files!

Child themes are designed for you to customise a wordpress theme.

This means:
(1) If anything breaks you can easily disable files and work out which one is broken.
(2) If the Slidingdoor theme is updated you can keep all your custom changes.

To make a child theme:
1. In your wp-content/themes folder make a folder called 'slidingdoor-child'
2. Make a file in this folder called 'style.css' that has this in it:

Code: Select all
/*
Theme Name: Sliding Door Child
Theme URI:
Description: Child Theme for Sliding Door
Author: Your name!
Author URI:
Template: sliding-door
Version: 0.1
*/
 
@import url("../sliding-door/style.css");
@import url("../sliding-door/dark.css");
@import url("../sliding-door/light.css");
@import url("../sliding-door/imagemenu/imageMenu.css");

/* Place new css code below here */


3. In the wordpress admin go to appearance themes and enable the child theme, not the main theme.
4. Go for it. If you want to change a file, make a COPY of it from the main slidingdoor theme folder to this new child theme folder, and any files in this child theme folder will over-write the originals.

You can just ADD css to this style.css, you don't need to copy the whole original .css file. The css you add to this child theme file will overwrite the original css.
wayne
Site Admin
 
Posts: 726
Joined: Tue Apr 08, 2008 7:02 pm

Re: IMPORTANT: Use a Child Theme

Postby gbt » Thu Aug 09, 2012 1:39 am

Hi Wayne ,
First i'd like to thank you for this great theme and support forum.

I have followed your instructions on creating a child theme in order to perform the changes. I wanted to remove the categories info existed originally on the right side bar by deleting the following lines from the sidebar.php file

<li class="widget-container"> <h3 class="widget-title"><?php _e( 'Categories', 'slidingdoor' ); ?></h3> <ul> <?php

wp_list_categories(array('title_li' => ''));

?>

</ul> </li>

So i tried to copy sidebar.php to the child theme in file manager but it would only place it in /
public_html/wp-content/themes/ and not in the childe theme folder, i don't know why. I tried copying another file. same thing. so i've downloaded the file and then uploaded it again to the child theme file , edited it. worked great. Have i done anything wrong in that whole process.

Thanks,
gbt
gbt
I'm new here
 
Posts: 1
Joined: Thu Aug 09, 2012 1:23 am

Re: IMPORTANT: Use a Child Theme

Postby Andrew P » Tue Aug 28, 2012 2:48 am

Hi Wayne,

I'm using a child theme this time so that I can keep my edits where I can see them!
But I'm finding that the light/dark setting means that a lot of my css settings (background colours particularly) are being overwritten.
My only workaround has been to remove line 68
Code: Select all
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $cssurl; ?>">

from header.php
Andrew P
Legend!
 
Posts: 12
Joined: Mon Nov 29, 2010 7:44 am
Location: Hall, ACT, Australia

Re: IMPORTANT: Use a Child Theme

Postby malik66 » Tue Jan 21, 2014 9:33 am

public_html/wp-content/themes/ and not in the childe theme folder, i don't know why. I tried copying another file. same thing. so i've downloaded the file and then uploaded it again to the child theme file , edited it. worked great. Have i done anything wrong in that whole process.
malik66
I'm new here
 
Posts: 1
Joined: Tue Jan 21, 2014 9:31 am

Re: IMPORTANT: Use a Child Theme

Postby kikibelu » Thu May 22, 2014 7:35 pm

Hi wayne,

I used your theme up to 10 sliding doors for one site.

But, I don't make a child theme, just a copy with modified files. Never updated, my version make troubles with last version of WP
Thus, I make a child theme. I follow your post, all was nice until....

If I preview without changes, that's ok

But when i copy function.php in my slindingdoor-child folder, the preview is white, any button appear...

Can do this ? where is the mistake ?

thanks a lot !


sorry for my bad english, I m belgian
kikibelu
Legend!
 
Posts: 10
Joined: Fri Apr 06, 2012 2:56 pm

Re: IMPORTANT: Use a Child Theme

Postby Xander » Sat Feb 20, 2016 10:08 am

If you plan on making any changes to the theme, use a child theme - don't change the original files!

Child themes are designed for you to customise a wordpress theme.

This means:
(1) If anything breaks you can easily disable files and work out which one is broken.
(2) If the Slidingdoor theme is updated you can keep all your custom changes.

To make a child theme:
1. In your wp-content/themes folder make a folder called 'slidingdoor-child'
2. Make a file in this folder called 'style.css' that has this in it:

Code: Select all
/*
Theme Name: Sliding Door Child
Theme URI:
Description: Child Theme for Sliding Door
Author: Your name!
Author URI:
Template: sliding-door
Version: 0.1
*/

@import url("../sliding-door/style.css");
@import url("../sliding-door/dark.css");
@import url("../sliding-door/light.css");
@import url("../sliding-door/imagemenu/imageMenu.css");

/* Place new css code below here */



3. In the wordpress admin go to appearance themes and enable the child theme, not the main theme.
4. Go for it. If you want to change a file, make a COPY of it from the main slidingdoor theme folder to this new child theme folder, and any files in this child theme folder will over-write the originals.

You can just ADD css to this style.css, you don't need to copy the whole original .css file. The css you add to this child theme file will overwrite the original css.


Hi Wayne great post and thanks for the sliding door theme. I'm going to use it in soon on my new site. So by creating a child theme when we want to use it do we delete the main theme and replace it with the child theme? I'm not too familiar with WP.
A bottle of phenq helped me lose weight.
Xander
I'm new here
 
Posts: 1
Joined: Fri Feb 19, 2016 12:53 pm

Re: IMPORTANT: Use a Child Theme

Postby audiog » Wed Aug 09, 2017 5:49 am

car paint spray
car spray paints
aerosol spray paint for cars
paint remover
paint remover for metal
spray paint
spray paint cans
plasti dip spray
rubber spray paint for cars
tyre polish
tyre cleaner
bike paint
bike spray paints
spray paint for metal
Foamy cleaner
Brake and Parts cleaner
spray paint
aerosol spray paint
metallic spray paint
spray paint for metal
spray paint for plastic
primer spray paint
metal spray paint
cheap spray paint
automotive spray paint
acrylic spray paint
normal spray paint
rubber paint
rubber spray
rubber spray paint
rubber paint for cars
rubber coating spray
rubber coating paint
rubber coating for metal
spray paint for cars
rubber paint spray
spray rubber coating
rubber spray coating
best removable spray paints
paint remover india
paint remover spray
aerosol spray paint
spray paint for cars
automotive spray paint
tyre polish
tyre cleaner
bike spray paints
paint remover
Spray cleaners
Best Spray cleaners
Spray cleaners in Delhi
3 axis gimbal
uo online
trio
uoplay
gimbal dslr
dslr gimbal
3 axis gimbal dslr
3 axis gimbal stabilizer
gopro gimbal
gimbal for gopro
handheld gimbal
gimbal dslr
gimbal gopro
gimbal camera
trio
the trio
trio website
3d trio camera
buy best trio gimbal
best trio gimbal buy
trio gimbal at best price
trio gimbal price
trio gimbal price in india
Gimbal In India
Gimbal for iphones
uo online
uoplayer
smartphone gimbal stabilizer
uoplay gimbal
handheld camera stabilizer
uoplay
3 axis gimbal for smartphone
iphone gopro gimbal
3 axis gimbal stabilizer
handheld gimbal stabilize
steady gimbal
VPS Hosting
Managed vps hosting
Windows vps
Dedicated server hosting
Virtual server hosting
Cloud web hosting
Localstorage
Webstorage
Storage server
Website hosting
Windows hosting
Cheap web hosting
Linux hosting
Linux vps hosting
VPS Hosting
Virtual Server Hostin
SD VPS Server
Windows VPS
Windows VPS Hosting
Cheap Linux VPS
SSD VPS Server
SSD Hosting
Managed VPS Hosting
Data storage
Cloud based storage
Secure cloud storage
Storage server
Server storage
Ssd server
Online cloud storage
Private cloud storage
Dedicated server hosting
Best dedicated server hosting
Managed dedicated server
Windows dedicated server
Dedicated hosting server
Linux Dedicated Server Hosting
Managed dedicated hosting
Dedicated server hosting plans
Linux hosting
Linux web hosting
Linux vps hosting
Linux server hosting
Linux virtual server hosting
Linux hosts
Web hosting
Website hosting
Best web hosting
Web hosting services
Cheap web hosting
Best hosting
Windows hosting
Web hosting usa
Malware detection
Web malware detection
Malware detection online
Online web malware detection
Malware scanner for website
Online website malware scanner
SSL Certificate Online
SSL Certificates
sitelock
sitelock cdn
sitelock malware scanner
sitelock domain security
sitelock firewall
sitelock infinity
sitelock malware scanner review
Data migration services
Data migration
Email migration services
Website migration services
Email migration
Website Protection
Hostguard
Website data protection
Best website protection
Website protection service
Buy Hostguard
voip service providers
voip billing system
voip billing software
wholesale routes
voip billing solutions
itel mobile dialer
auto dialer
predictive dialer
call dialer
voip dialer
phone dialler
dialer system
auto dialer system
voip auto dialer
quick dialer
dialer voip
soft switches
softswitch
sip softswitch
softswitches
soft switches
best soft switches
soft switches services
soft switches service
best soft switches services
voip service providers
voip billing system
voip billing software
voip south africa
voip phone solutions
voip providers in south africa
voip secutiry solutions
voip phones south africa
voip for business
voip solutions for business
Wholesale Voip Provider
Voip Termination
VOIP Trunk
Sip trunk
Sip gateway
voip business
wholesale routes
voip routes provider
voip wholesale
wholesale service provider
voip wholesale
wholesale az voip termination
wholesale voip termination provider
wholesale termination
voip wholesale rates
voip wholesale carrier
business voip provider
voip business
wholesale routes
voip routes provider
call termination business
voip termination business
wholesale voip business
wholesale routes
Sip trunk
Sip gateway
wholesale voip provider
voip termination business
voip termination process
sip trunking
voip trunk
voip termination provider
voip for call center
voip termination provider
voip termination
wholesale voip termination provider
wholesale voip termination services
wholesale az voip termination
voip call termination
call termination
Wholesale Service for Call Center VOIP
Wholesale Voip Provider
wholesale Voip Termination
wholesale voip services
voip wholesale services
voip wholesale rates
Commercial Photography
Automated Product Photography
WinBiz 360 degree turntable
Best Automated Product Photography
Automated Product Photography in india
Automated Product Photography in delhi
automatic photography
WinBiz 3D
Winbiz
360 photography
automatic photography
ecommerce product photography
3d photography
commercial photography
product photoshoot
corporate photography
winbiz lightbox
winbiz 3d auto-imaging system
3d photography
commercial photography
360 photography
winbiz in india
winbiz in delhi
winbiz
win bi
professional photography studio
commercial photography
product photoshoot
catalogs emendation
corporate photography
product photography
audiog
Legend!
 
Posts: 30
Joined: Wed Aug 09, 2017 5:43 am

Re: IMPORTANT: Use a Child Theme

Postby kimhud » Sat Sep 16, 2017 11:13 am

In my view, Child themes are designed for you to customise a wordpress theme, but i have got some error while updating the theme check this
kimhud
I'm new here
 
Posts: 1
Joined: Sat Sep 16, 2017 9:05 am
Location: USA

Re: IMPORTANT: Use a Child Theme

Postby julias » Sat Sep 16, 2017 1:04 pm

I also have the same problem when I updating child theme in WordPress. Have any solution?
julias
I'm new here
 
Posts: 1
Joined: Sat Sep 16, 2017 12:59 pm


Return to Advanced - Customising the theme