-
Author
-
September 9, 2013 at 10:01 #2497rudik2Participant
I do not understand why the install sweetdate-child theme? Surely there is some logic, please explain. That topic is to be active?
September 9, 2013 at 15:23 #2515adamParticipantsweet-date child theme needs to be activated with the sweetdate theme installed. this way, you can make any customizations to the child theme that you want and they won’t get lost when you upgrade to the newest release of the sweetdate theme.
September 9, 2013 at 15:25 #2516rudik2ParticipantWhich is the main theme, the one that I publish under its domain and which is only to modify and update?
September 9, 2013 at 15:31 #2517adamParticipantsweetdate-child is only to modify and should be the activated one. sweetdate is the one that you upgrade when there is a new release.
September 9, 2013 at 15:32 #2518adamParticipantjust to be clear – sweetdate-child is the main theme to be activated (and can be customized by you without losing any changes when sweetdate is upgraded).
September 9, 2013 at 15:53 #2519rudik2ParticipantSo – sweetdate-child strapped my online domain and edit, personalize but “sweetdate ” theme not edit and personalize?
September 9, 2013 at 19:59 #2530SQadminKeymasterHi,
You install both themes but activate the sweetdate-child.
You don’t need to modify main parent theme files. If you want to modify a template file, copy it to sweetdate-child theme and change it there.“A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme. A child theme is the safest and easiest way to modify an existing theme, whether you want to make a few tiny changes or extensive changes. Instead of modifying the theme files directly, you can create a child theme. A child theme inherits all of the templates and functionality from its parent theme, but allows you to make changes to the parent theme because code in the child theme overwrites code in the parent theme. ”
from http://codex.wordpress.org/Child_ThemesHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 11, 2013 at 07:09 #2628joeldeckerParticipantI am having some trouble activating the child-theme. I have installed both, current release, and when I activate the child theme I get the following message;
———————–
Warning: require_once(framework/constants.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/82/11574682/html/wp-content/themes/sweetdate-child/functions.php on line 44Fatal error: require_once() [function.require]: Failed opening required ‘framework/constants.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/82/11574682/html/wp-content/themes/sweetdate-child/functions.php on line 44
———————–
I love the idea of the child theme, making all my changes there and just re-installing all the new updates simply by installing the parent theme, and have that make automatically update the child theme. But somewhere I got caught in this loop and can’t quite get out of it. I tried deleting both from the server and re-instaling both, but got the same message.
Thanks for your help.September 11, 2013 at 15:56 #2647SQadminKeymasterHi,
You don’t have to copy anything from the main functions.php. In the child theme leave it empty if you don’t have any code to change. You only add code if you want to override something. It seems by the error that you are copying the code form the original theme
Make sure to remove the child theme you have now because it seems to have wrong code in the functions.php and install the one provided in the package.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 26, 2013 at 11:29 #3370rudik2ParticipantI made a few modifications to the code. When you upgrade to 2.1 is losing my modification. What can I do to not lose my modification when i update sweetdate theme?
Modifications i created in active SweetDate-childSeptember 30, 2013 at 02:46 #3547SQadminKeymasterHi, You only have to update the main theme. What file loses the modification?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.