Home › Forums › Community Support Forum › WordPress Plugins › Orbisius Child Theme Creator › Modified Theme
Tagged: how to use child themes
- This topic has 18 replies, 5 voices, and was last updated 10 years, 5 months ago by Slavi Marinov.
-
AuthorPosts
-
August 23, 2013 at 9:58 am #1023w3rjwParticipant
If a theme has already been modified, can I replicate what is currently being used and make it a ‘child’ theme ??
August 23, 2013 at 4:07 pm #1024Slavi MarinovKeymasterHi,
I think it’ll be better for you to download a fresh copy of the original theme and make a child theme of it.
Then apply your changes.The reason for that would be that you’ll have your changes on one spots only which is a lot easier to track.
I’ve run into issues where the original theme does’t allow some features (e.g. styles) to be overridden in that case I modify the parent theme but I create a text file in the child theme mentioning the changes as well as I put some comments in the parent theme as well.
September 3, 2013 at 7:47 am #1053ramthasParticipantsame problem,
solution does not work,
File not copy, problem folder permissionsSeptember 3, 2013 at 1:10 pm #1058Slavi MarinovKeymasterHi ramthas,
Did you get an error within the plugin about permissions?
If that’s the case I think you should contact your hosting’s support and ask the to make the wp-content/themes/ writable by the web server. That way the plugin will be able to create the necessary files and folders.September 5, 2013 at 5:00 am #1065ramthasParticipantNo server problem
folder created by the plugin can not be changedTanks
September 5, 2013 at 1:19 pm #1066Slavi MarinovKeymasterHi Ramthas,
Can you please define what is the exact issue?
Is it that the Child Theme Creator creates a folder but it’s empty?
Or is starting with a fresh theme not an option?September 25, 2013 at 12:48 pm #1193GemaParticipantHi Slavi, thanks for your pasion and patience! ;)
I am in trouble to make work the css code on the child. Same lines do work correct if I type on the parent style.css but nor on the child.
I have both themes active at the Dashboard, Themes, Install themes.
Those are the lines at the child style.css
/*
Theme Name: Sublime Press Child 01
Theme URI:
Description: Child 01 theme for the Sublime Press theme
Template: sublime-press
Version: 1.1.2
*/@import url(‘../sublime-press/style.css’);
ul {margin:0; padding:0;list-style-image:none;}
li {padding:0px 0 0px 25px; line-height:25px; background:url(../sublime-press/images/marker.png) 0 5px no-repeat;}Thanks!
September 26, 2013 at 2:45 am #1197Slavi MarinovKeymasterHi Gema,
Confirmed. The child theme’s style.css is not loaded. I set it up on a test site. Access code: 123
http://gqdbttvl3u.qsandbox.com/?page_id=6This is an issue with the theme. I submitted a support request here:
http://wordpress.org/support/topic/support-for-child-themes-1?replies=1#post-4694159September 26, 2013 at 3:36 am #1198GemaParticipantMan, that was fast! Great I modificated and know is working. Thanks so much! Have a great day! ;)
September 26, 2013 at 10:57 am #1200Slavi MarinovKeymasterGema, sometimes we have no choice but to modify the parent theme.
In that case, I highly recommend that you include a readme text file in the child theme documenting the changes.September 27, 2013 at 3:14 am #1228GemaParticipantYou know what I forgot yesterday. You do an awesome attention. Thanks a lot!
Have a great day!! ;)
December 19, 2013 at 4:04 pm #1581dinogomezParticipantI’m not sure how this works… I created successfuly a child theme. I need to make some changes to the functions.php file and my idea is that when I update the original theme to a newer version, I don’t have to track/change manually the changes. I open the two window editor, but on the child theme it doesn’t have the functions.php file. How creating a child theme help me? Thanks
December 19, 2013 at 4:14 pm #1583Slavi MarinovKeymasterHi Dino,
you don’t necessarily need functions.php . You need that file only if you need to override some functions from the parent theme.
For example: the parent theme truncates some content to the fist 60 characters and you want that to happen at 80.
In that case you re-create that function in the child theme only BUT you have to make sure that your parent theme supports so called pluggable functions i.e. in the parent theme’s functions.php there must be function_exists check before the definition of the function. If that’s not the case your site will crash!
In previous versions Child Theme Creator had the function to copy functions.php and there was a warning and people still checked that box to copy the functions.php file and since the parent theme didn’t support pluggable functions the sites would crash.Slavi
December 19, 2013 at 4:19 pm #1584dinogomezParticipantI see several function_exists inside the Parent Functions.php file. So how do I make a change to the theme? Child or parent so if I update the theme I don;t have to do it over again? Thanks for your prompt response.
December 19, 2013 at 5:40 pm #1585Slavi MarinovKeymasterDino,
As I said you probably won’t need functions.php unless you want to override certain functionality.
Did you see the example video? It is for an older version but shows how to create a child theme.
http://www.youtube.com/watch?feature=player_embedded&v=BZUVq6ZTv-oIn the new version there is a double Theme Editor under Appearance which you could use to edit theme files.
-
AuthorPosts
- You must be logged in to reply to this topic.