Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to make a child theme?

  • @bandtobuy

    Participant

    PLEASE READ FULL THREAD BEFORE RESPONDING
    Had to add that because I do not need articles on how to fully do it. So, I know how to code and how to design it, I just don’t know how to get a custom style.css and functions.php file? I am using this article that says to create a style.css and functions.php in my wp-content/theme/ file. I am using Bluehost, and went into my files, found the content/theme, and made a new folder entitled “New Theme” and made a style.css and functions.php file. Now, when I go into editor, it shows the theme but when I go to edit it, I can only see a message saying that it is incomplete, along with a style.css link. I go to the styl.css and it says that the file could not be edited.
    WHAT DO I DO?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @ubernaut

    Participant

    i don’t think using the wordpress css editor would be the way to create that file normally you would use some other text editor i typically use dreamweaver.

    @mercime

    Participant

    @bandtobuy 1. BuddyPress should be activated before child theme of bp-default theme is recognized in themes. or 2. Did you add the stylesheet header in your new style.css file? you didn’t say.
    /*
    Theme Name: My Child theme
    Theme URI: – optional –
    Author: Your Name
    Author URI: – optional –
    Description: – optional –
    Version: – optional, but better to add version –
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: buddypress
    Theme: bp-default
    */

    @bandtobuy

    Participant

    I couldn’t figure out how to add the stylesheet header because I was unable to edit it. I simple made the folder but I could not configure it

    @mercime

    Participant

    I couldn’t figure out how to add the stylesheet header because I was unable to edit it. I simple made the folder but I could not configure it


    @bandtobuy
    create the child theme folder with the style.css (with header) and functions.php file within, in your computer’s hard drive and then upload the child theme folder with files to wp-content/themes/ in server.

    @bandtobuy

    Participant

    oooh OK thank you

    @mercime

    Participant

    @bandtobuy you’re welcome. Let us know how it goes 🙂

    @bandtobuy

    Participant

    Okay, so I got Notepad++ and made the files, and when I go into WordPress editor, it shows my style.css and functions.php, but when I click on style.css it says “Sorry, this file cannot be edited”. I am using this tutorial http://www.1stwebdesigner.com/tutorials/create-buddypress-theme/ and I cannot tell which part is the template. On WordPress it says the theme is broken because it does not have a template. I thought by putting in the
    1
    /*

    Theme Name: bp-child

    Theme URI:

    Description: Author:

    Author URI: Version:3.0.2

    Template: bp-default

    Tags: */

    Code that I would be able to start editing the theme on wordpress. Is that just the stylesheet? If so, what do I do for a template?

    @ubernaut

    Participant

    you may need to rename the file to style.txt for wordpad to recognize it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to make a child theme?’ is closed to new replies.
Skip to toolbar