- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by Theme Horse Support Team.
-
AuthorPosts
-
October 14, 2014 at 11:26 pm #17533GrafixerMember
I am trying to create a new child theme, and before I make any modification, I would expect the website retain all its functions and appearance. On the WordPress site (http://codex.wordpress.org/Child_Themes#Using_wp_enqueue_style_instead_of_.40import)
it suggest a different linking method than using the import line. ( @import url(“../clean-retina-pro/style.css”);
The site suggest: @import should not be used to import the parent stylesheet into the child theme. The correct method is to use wp_enqueue_style() to enqueue the parent stylesheet, using this code in your child theme’s “functions.php”:
Is it a better way to connect Clean Retina Pro to a child version? Do I have to set up a new document inside the clean-retina-pro-child folder, called: functions.php?
Reading later on the same website, it also gives additional instructions to alter the original theme functions.php. Wouldn’t that concept defeat the purpose of leaving the original codes intact? Please suggest what is the best way?
So far once I check the child theme, I am loosing the header image and I have only text instead, and also some of the order and the name of the menu gets changed.October 15, 2014 at 8:51 am #17541Theme Horse Support TeamKeymasterHi Grafixer,
Yes exactly you need to create a new functions.php file inside thee clean retina pro child folder.I am not sure how the header image is lost? If i found any solution regarding to the header image lost then i will let you know.You can use any of this method to import the style.
@import url(“../clean-retina-pro/style.css”);
The above code only import the css. Other that this you need code customization inside functions.phpThank you!
October 15, 2014 at 2:04 pm #17556GrafixerMemberIs this import mode is better than the recommended process through a functions.php instruction, as suggested on the WordPress website? I am still missing the headers image, and some of the menu items are in the incorrect order, and it replaces the title of the link. Can you suggest where should I look for fixing the issue.
I am afraid to proceed for any custom coding in the child theme till it does not display the exact same order as the original theme, the Clean Retina Pro.
Please suggest where should I look for any solution. This does not seem to require any custom fixing. I am unable even to make a simple child theme.October 16, 2014 at 7:30 am #17584Theme Horse Support TeamKeymasterHi Grafixer,
You once just activate the parent theme and check whether the header image is displayed or not ? There may be some issue while unhook the functions. I am also surprised how your header image is lost. Just active a child theme and then upload the header image. Hope after doing it you may get it. Did you added some css inside custom css, If yes then add the same css inside your child cusom css section.Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.