Issue creating child theme/updating custom css

This topic has 17 replies, 5 voices, and was last updated 9 years, 10 months ago ago by Olga Barlow

  • Avatar: CJMillar82
    CJMillar82
    Participant
    January 7, 2015 at 10:05

    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!

    Please, contact administrator
    for this information.
    16 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 8, 2015 at 09:18

    Hello,

    Please read the instruction how to create child theme correctly:
    http://codex.wordpress.org/Child_Themes

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 8, 2015 at 20:18

    I did follow that and made all the edits appropriately. :/

    Avatar: Eva
    Eva Kemp
    Support staff
    January 8, 2015 at 21:42

    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.

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 9, 2015 at 01:18

    Thank you very much! I will check it shortly!

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 9, 2015 at 04:10

    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????

    Avatar: pro2know
    pro2know
    Participant
    January 9, 2015 at 04:39

    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?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    January 9, 2015 at 08:07

    Hello pro2know,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: Eva
    Eva Kemp
    Support staff
    January 9, 2015 at 12:19

    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.

    Avatar: pro2know
    pro2know
    Participant
    January 9, 2015 at 13:36

    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.

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    January 9, 2015 at 13:50

    Hello pro2know,

    I’ve selected a Child Theme in Appearance->Themes and now it’s works well. Check it.

    Regards,
    Robert Hall.

    Avatar: pro2know
    pro2know
    Participant
    January 9, 2015 at 14:43

    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

    Avatar: Robert Hall
    Robert Hall
    Support staff
    January 9, 2015 at 14:49

    Yes, it’s normal method to use Child Theme, don’t worry.

    Regards,
    Robert Hall.

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 12, 2015 at 20:06

    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!

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 13, 2015 at 00:43

    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!

    Avatar: CJMillar82
    CJMillar82
    Participant
    January 30, 2015 at 22:05

    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!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 31, 2015 at 09:31

    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

  • Viewing 17 results - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.