WordPress.org

Forums

[resolved] Child Theme Help (17 posts)

  1. 420DankStank
    Member
    Posted 2 years ago #

    I am using CyberChimps business lite (free) theme. I have to edit the font .error size and alignment all of the time in the theme/css/style.css file. Instead of editing everytime there is a theme update, I am trying to create a child theme.

    I created a directory "/business-lite child" in the theme folder. It has the css file that reads:

    /*
    Theme Name: business-lite child
    Description: Child Theme
    Template: business-lite
    Version: 0.1
    */

    @import url("../business-lite/style.css");

    /* This will edit the Font */
    .error {font-size:18px; text-align:left; }

    I go to select the child theme under: appearance>themes>manage themes, but it is not there.

    I tried what this Thread said, and added:

    <?php
    require_once ( get_template_directory() . '/theme-options.php' );
    ?>

    <?php
    require_once ( get_template_directory() . '/images.php' );
    ?>

    That didn't help. What am I doing wrong?

  2. 420DankStank
    Member
    Posted 2 years ago #

    I had also tried making the import rule:

    @import url("../business-lite/css/style.css");

    That's where the edits are usually made, but that change didn't work either.

  3. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    I created a directory "/business-lite child" in the theme folder.

    In the /wp-content/themes/ folder?

  4. 420DankStank
    Member
    Posted 2 years ago #

    In the Business Lite Folder.

    The complete directory for the child style sheet is:
    /wp-content/themes/business-lite/business-lite child/style.css

  5. Andrew
    Nuh uh moderator
    Posted 2 years ago #

  6. 420DankStank
    Member
    Posted 2 years ago #

    Duh. I put it in the wrong folder. I was able to get it to become active. Now, using chrome development tools, I'm checking the code to see if the .error rule is being called from my child theme, but it doesn't say that it is.

  7. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    May you provide a link to the issue?

  8. 420DankStank
    Member
    Posted 2 years ago #

    http://althealththc.com/patient-verification/

    If I use the development tools to inspect the label wrapper on the verification box, that is where the matched css .error rule is.

    It is calling to: http://althealththc.com/wordpress/wp-content/themes/business-lite/css/style.css?ver=3.5.1

    I believe it should be: ../business-lite/business-lite child/style.css

  9. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Your Child Theme is not active.

    I believe it should be: ../business-lite/business-lite child/style.css

    Remember, you moved it to /wp-content/themes/

    Have you activated it through the dashboard?

  10. 420DankStank
    Member
    Posted 2 years ago #

    Yes. It says it is active on the dashboard. But the rule seems to be still coming from the main themes css file.

  11. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    The webpage is trying to load your Child Theme style.css file, but it cannot be found;
    http://althealththc.com/wordpress/wp-content/themes/business-litechild/style.css

    I'm going to wait for someone else to investigate this further, but it looks like the business-lite theme doesn't support Child Themes.

  12. 420DankStank
    Member
    Posted 2 years ago #

    Do I need to put anything else infront of my custom css rule?

    /* This will edit the Font */
    .error {font-size:18px; text-align:left; }

  13. 420DankStank
    Member
    Posted 2 years ago #

    OH. No child theme support. That's dumb. I thought child themes were allowed on any theme.

  14. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Unfortunately that's not a mandatory criterion for themes at WordPress.org. I hope that's changed.

  15. 420DankStank
    Member
    Posted 2 years ago #

    I tried that link for the style sheet. You were missing the space between lite and child.

    http://althealththc.com/wordpress/wp-content/themes/business-lite%20child/style.css

  16. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Uh-oh, don't put spaces in your file names.

  17. 420DankStank
    Member
    Posted 2 years ago #

    HURRAY! I changed the child theme folder name to not have the space. Boom Calling correctly. Sheesh. Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic