What’s the site URL?
You put only changes in the style.css file – to overrride the existing CSS. For .php files (except functions.php), yes, you can put a copy in the child theme – and modify it there. For functions.php, it’s more complicated – but don’t put a copy of that file in the child theme or it will likely crash the site.
Hello
The URL is http://www.tonybarbour.co.za
So for style sheet changes, (CSS) I just copy and paste changes into the editor when the child theme is open but for .php files I can copy all of them (except functions.php).
Please confirm and then I can edit away π
Thank you for the swift response, you’re a lifesaver.
CSS changes go in the child theme style.css file via the editor.
And yes, for .php files, except functions.php, put a copy in the child theme folder – then you can edit them via the Editor as well.
But right now, doesn’t look like you have a child theme activated on the site?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I made a folder: pilot-fish-child with a file text file in it in the themes folder of wp-content on Filezilla.
In the text file, I put:
Theme Name: Pilot Fish Child
Theme URL: http://wordpress.danielatwork.com/pilotfish/
Description:
Author:
Author URI:
Template: pilot-fish
Version: 0.1.0
@import url(“../pilot-fish/style.css”);
It appeared in Appearance > Manage Themes and I activated it.
I added the code mentioned earlier to remove meta data for comments but it doesn’t look like it worked.
I’d like to remove the comments section altogether – how do I do that without deleting it in the parent theme?
Thanks for your help guys, I appreciate it.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Do you have any caching plugins active? Your Child Theme is still not apparent on your website.
For example, put this at the bottom of your Child Theme style.css file and see if anything happens:
body { border: 10px solid red !important; }
Interesting… I did that but nothing has happened. So it’s the child theme that’s the problem. How do I rectify? Or could you possibly explain the instructions in the Pilot Fish FAQs in more detail?
No chaching plugins that I’m aware of
Did you do this per Dani’s FAQ’s:
Please add a header.php to your child theme, you can just copy my original header.php file, and add
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/style.css” />
inside the <head> tag of the header.php file. You can also download this style.css template for your child theme π
Yes, I have.
Plugins are: BackUpWordPress, Custom Favicon, WordPress SEO, WP Maintenance Mode. Would these have an effect?
Thanks for your help guys π
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Edited: Sorry I meant Child Theme header.php file:
Could you copy all of the code of your header.php file and put it into a PasteBin page and link us that?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Sorry I edited my post, I meant to say the Child Theme header.php code.