-
AuthorPosts
-
June 17, 2017 at 7:07 pm #809351
Hi, it’s very important. Always when I create a site with ENFOLD I put the name of THEME with the same name as the client.
For example:
Theme folder with name my client. Inside this folder I put THEME ENFOLD files. But I noticed that CHILD THEME is not available for activation if the theme name is different from ENFOLD. How to solve this? I also modify SLYLE.CSS. I put the company’s customer data as well.
Tell me how to solve this. It’s very important. Is it possible for the child to function?
June 18, 2017 at 7:05 am #809468Hey mleite1,
You will need to edit the template name in the child theme’s style.css, please note that we do not recommend doing what you are doing, since you will likely have problems with automatic updates of the theme.
Template: the name of your template
Best regards,
RikardJune 18, 2017 at 12:03 pm #809513Rikard, okay. I’m afraid of that. So what’s the best way for me to add new fonts to the system? Does it have to be by the Child Theme? Can it be any other way?
June 18, 2017 at 1:41 pm #809522i think this here is a nice tut: http://kriesi.at/documentation/enfold/using-a-child-theme/
June 18, 2017 at 2:24 pm #809528Hi,
The principal of the child theme is the same even though you have changed the name, as far as I know the only thing that will be affected is the ability to update it from the backend.
Thanks @guenni007 for sharing :-)
Best regards,
RikardJune 18, 2017 at 3:06 pm #809544Guenni007, thanks for the help. This link helps those who are already starting the site creation with Child Theme. In my case I already have a site set up and I want to use the Child Theme. It’s quite different. I have the custom theme folder (another name other than Enfold). I also have custom style.css.
So I’ve had a hard time working with Child. You see?If you can help, I’ll thank you.
June 18, 2017 at 3:15 pm #809545Rikard, I always update manually. Ever. I drag the files via FTP to the theme folder. I just do not update the file FUNCTIONS.PHP and SCREENSHOT.png … In function I use DEBUG for CSS CLASS.
One last question. Consider that my site is already created.
I have a theme folder with the name of my client. For example: HIDROCON. In this folder I put the ENFOLD theme files.After this I go in STYLE.CSS and modify. I enter the data of my agency.
QUESTIONS
What should I do to run the Child Theme?
1 – Will I have to rename the theme to ENFOLD?
2 – Is there another way to put it to work?
3 – Is it necessary to tinker with STYLE.CSS?
4 – Where? What should I change?HIDROCON THEME FOLDER NAME
CODE STYYLE.CSS that I use for this client.
/*
Theme Name: Milk9 CCES
Description: A superflexible and responsive Business by Milk9 – <br/> Update notifications available on twitter, facebook and via newsletter:<br/> Follow me on twitter<br/> – Join the Facebook Group – Subscribe to our Newsletter
Version: 4.0.7
Author: Marcelo Leitte
Author URI: http://www.milk9.com.br
License: Estúdio Milk9
License URI: –
Theme URI: http://www.milk9.com.br
*/
/*
* PLEASE DO NOT EDIT THIS FILE!
*
* This file is only in your folder for WordPress to recognize basic theme data like name and version
* CSS Rules in this file will not be used by the theme.
* Instead use the custom.css file that is located in your themes /css/ folder to add your styles.
* You can copy a style rule from any of your css files and paste it in custom.css and
* it will override the original style. If you just want to add small css snippets you might also
* want to consider to add it to the designated CSS option field in your themes backend at: Theme Options->General Styling
*/Does the style.css influence something? Does it need to be changed if you use CHILD?
Help me … please!
June 19, 2017 at 4:51 am #809637Hi,
I think the only thing you have to change is the name of the template in your child theme’s style.css file like I wrote earlier, update the name to correspond to the new name of the parent:
Template: HIDROCON
Best regards,
RikardJune 19, 2017 at 7:22 am #809671well to have the right understanding –
1) you uploaded the enfold folder at install.
2) you renamed the enfold folder to something else (like Kriesi said to have an own branding on it)
3) you did that snippet :add_filter('avia_dyn_stylesheet_file_path', 'avia_change_filename'); function avia_change_filename($stylesheet){ return 'myfilename.css'; }
myfilename had to be replaced by the name of the renamed enfold
you will have than in wp-content/uploads/dynamic-avia/ css files which have their own name
4) you now want to have a child theme ?download that predefined child theme of enfold (downloads) – rename it to (in that case above) myfilename-child.
Open the style.css of that child-theme folder and edit (these are only the necessary entries – rest is obligate):/* Theme Name: Myfilename Child Template: myfilename */
Upload that folder to your themes folder.
Activate the child in Appearance/themes.
goto Myfilename Child (Enfold Options willl now named this way) an import parent-theme settings.June 19, 2017 at 1:20 pm #809753well – you can change in style.css of the parent-theme too the name – then on Dashboard – Appearance – Themes the changed Name is displayed under the screenshot.png’s (think of to upload new screenshots to make it right!) ( i tested it with name of the theme : elegant)
If an automated Update of Enfold works if this is done – i don’t know. i always prefer the ftp method (and don’t forget to edit the style.css of the parent theme !)
btw. i don’t know in which chronological order you made it. Importing parent settings only will work with that snippet above. So have a look if in your folder : wp-content/uploads/dynamic-avia/ there are those two files correlating each other ( in my case above elegant.css and elegant_child.css
June 19, 2017 at 1:30 pm #809756 -
AuthorPosts
- You must be logged in to reply to this topic.