badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Linking the child theme to the parent's theme style.css

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17533
    Grafixer
    Member

    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.

    #17541

    Hi 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.php

    Thank you!

    #17556
    Grafixer
    Member

    Is 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.

    #17584

    Hi 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.