This topic has 17 replies, 5 voices, and was last updated 9 years, 9 months ago ago by Olga Barlow
I followed all the instructions for the child theme, but I can’t seem to get it to work. I want to add custom CSS to be able to hide post author from the blog post pages. Please let me know if this is something you can help with?
Thank you!
Hello,
Please read the instruction how to create child theme correctly:
http://codex.wordpress.org/Child_Themes
Thank you.
Regards,
Eva Kemp.
I did follow that and made all the edits appropriately. :/
Hello,
As I see you have copied style.css from the parent theme.
In a child theme you should write only changes you want to make for some elements.
I’ve edited your child theme style.css file and renamed functions.php and index.php via FTP.
I’ve added the following code into style.css of the child theme to remove post information on the Blog page:
.meta-post {
display: none;
}
Please check it now.
Regards,
Eva Kemp.
Thank you very much! I will check it shortly!
Really weird – it mostly works but entirely broke our footer and hid the static blocks. When I try to adjust and reinstate our footer, it only displays the countdown timer and deletes the Facebook widgetized item on the right and the About static block on the left.
I made the main theme live again, and had to deactivate the child theme, but can’t figure out why it overrode the footer????
I did a child theme for my royal theme and had no troubles till I moved from a local server to my live host and then it just wouldn’t show anything till I went to wp-admin and change to adult theme. The wordpress codex help page for child themes is really different than how I see most people showing how to do it on youtube and other places. I was using the @import url(“../royal/style.css”); and that is now not working on the live server. I was wondering if that is the method your child theme uses?
Hello pro2know,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall.
Hello @CJMillar82,
The problem was that child theme didn’t have such widgets as you created in the parent theme. So I’ve added the same widgets to the child theme and now footer is working fine.
Please check.
Regards,
Eva Kemp.
I tried again and child is not working so I left it where it pulls up a blank screen when you go to the site.
Hello pro2know,
I’ve selected a Child Theme in Appearance->Themes and now it’s works well. Check it.
Regards,
Robert Hall.
Thank you,
When I went into appearance it seems like it was selected, but maybe with the duplicator transfer it may have unchecked it. Thank you I am going to redo it and see if I can get it to work like that.
Is the @import still an ok method to use to do a child theme?
Thanks
James Ewers
Yes, it’s normal method to use Child Theme, don’t worry.
Regards,
Robert Hall.
The footer on equiflexsleeve.com is still formatted wrong?? It’s missing the Facebook widget on the right side bottom, and the padding around the header is all cutoff. I checked the static blocks used to create this section and all the settings are correct, and if I switch back to the main theme from the child theme, the footer is automatically fixed.
Can anyone help with this? Thanks!
Hmm and it’s hiding everything, not just author (we want to show time/date stamp).
Switching back to main theme for now. I am stumped!
Still having this issue with the child theme:
The footer on equiflexsleeve.com is still formatted wrong?? It’s missing the Facebook widget on the right side bottom, and the padding around the header is all cutoff. I checked the static blocks used to create this section and all the settings are correct, and if I switch back to the main theme from the child theme, the footer is automatically fixed.
Can anyone help with this? Thanks!
Hello,
Please, create functions.php file in royal-child folder with following code:
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'bootstrap', 'parent-style' ) );
}
After that delete @import url("../royal/style.css");
from style.css and activate child-theme. Check your footer.
Regards,
Olga Barlow
You must be logged in to reply to this topic.Log in/Sign up