• Resolved Ray Davies

    (@ray-davies)


    Hi, I’m completely new to WordPress and the whole thing scares me to death! I want to make a child theme of expound. I followed a tutorial and I have created an expound-child folder with a new style sheet, containing the following:
    /*Theme Name: expound-child
    Theme URI: https://www.ilase.co.uk
    Author: Ray Davies
    Author URI: https://www.twintownprojects.com
    Description: A child theme of the expound theme created for ilase.co.uk
    Version 0.1.0
    Template: expound
    */

    At this point, do I simply copy & paste the content of the expound.css style sheet and that being where I make my alterations? Do I still put the @import bit in?

    Cheers

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hey. You can use the @import line to pull in all the content from the expound style.css file:

    @import url("../expound/style.css");

    You can then add any custom CSS for your site below this line.

    Thread Starter Ray Davies

    (@ray-davies)

    Thanks for that Siobhan, I’m stumbling through this slowly, my immediate problem now is that I get a “Theme is broken” message, telling me my stylesheet is missing. I have uploaded it.

    Is your stylesheet named style.css? Do you mind providing a link to your site? Is it https://www.twintownprojects.com?

    Thread Starter Ray Davies

    (@ray-davies)

    Hi Siobhan, I just got it sorted! I had named the style sheet expound-child. I changed it to style.css & that seems to have done the trick. Thanks for the quick response. No doubt I’ll be back!

    Glad you got it working! ??

    Thread Starter Ray Davies

    (@ray-davies)

    Okay, it’s all exploded! My menu has gone ape! https://ilase.co.uk/blog/iLase_wp/

    Thread Starter Ray Davies

    (@ray-davies)

    Right, not too sure what I did, but I changed the theme altogether, played about with things and decided to have another crack at expound & all is well it seems. Thanks for the help anyways

    Thread Starter Ray Davies

    (@ray-davies)

    Whoa, spoke too soon. Just noticed that I hadn’t re activated the child theme. Once I did that, it’s all broken again. Tearing hair out as I type!!

    Hey. I just had a look at your child theme’s style.css file and noticed you’d copied and pasted the contents of expound.css into it. This is great, but you’re now missing the contents of the parents theme’s reset.css file, which is important in terms of the site’s layout.

    Could you include the following line exactly as below:

    @import url("../expound/style.css");

    This will make sure that the contents of the parent theme’s expound.css and reset.css files are both included. If you include the import line then there is no need to copy and paste the contents from either files into the child theme’s style.css file, in fact doing this will just create duplicate code and unnecessary bulk.

    Thread Starter Ray Davies

    (@ray-davies)

    Oh, you little beauty! That did it! Thank you, thank you thank you!!!

    That’s great. ?? Just one more look at your child theme’s style.css, please delete the following line:

    @import url("../expound/css/expound.css");

    This is unneeded now as you’re called in the contents of expound.css via the style.css import call.

    Thread Starter Ray Davies

    (@ray-davies)

    Thanks again. Done. Now to set about getting it to look right.

    Great. Glad you got it working. ?? ??

    Any custom CSS you need to add should now be done below the import line and will override the theme’s CSS. Good luck with it.

    If you get stuck with anything in future please post back in these forums (under a different thread) and hopefully you’ll find someone to help.

    Thread Starter Ray Davies

    (@ray-davies)

    Thanks again, X

    Thread Starter Ray Davies

    (@ray-davies)

    Is it possible to create a functions.php file in my child theme without ftp? I need to alter the footer text

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Child theme implementation’ is closed to new replies.