Thursday, 23rd May 2013

«

»

Print this Post

Graphene Child Theme Template

It is always better to use a child theme while doing changes to the site / theme. But, as a volunteer at the Graphene Theme Support forum, I see so many people struggling to set up a child theme for the Graphene theme. So, I’ve decided to create a child theme template for the Graphene theme.

You can download the child theme template in this page. It has two files. A ready to use style.css file which is mandatory, and a blank functions.php file.

Download Graphene Child Theme

Click on the above image to download the Graphene Child theme

How to install it?

Download the child theme from the above link. Then go to Appearance –> Themes –> Install Themes and click on Upload. Browse the downloaded theme and hit the Install Now button. Activate the theme in the next step.

Or,

Extract the contents of the graphene-child.zip file and upload the graphene-child folder to the wp-content/themes/ directory using FTP. Then go to Appearance –> Themes and Activate the Graphene Child theme.

(If you’re using a custom header image, then, you need to restore the header image after activating the child theme. The same applies to background images and custom menus as well.)

Have any doubts? Feel free to post a comment or create a thread in the Graphene theme support forum.

- Prasanna SP

Short Link:

About the author

Prasanna SP

Student | WordPress Dev | Tech Blogger | Interested in GNU/Linux, FOSS, php, Drupal, Wordpress, Ethical hacking, Photography, Painting, Literature etc..

62 comments

6 pings

Skip to comment form

  1. Andrea

    Dear, i hope that you will be so kind to help me.
    I’m a beginner, and use a graphene thema. The first time, last sunday, i made a child graphene, like you explained (uploading a zip file) and eveyting wsa good. After, i can try to use child; in my ignorance, i done:
    1) select php file in child
    2) select header inside this
    3) copy in it the code, suggested in forum support’graphene, for completing plugin moving slide

    This operation had killed my site.. instead to see my site, i can only see the small box ,called “search”

    With artisteer i can try to upload primitive thema , and it done ok; after by thema i reloaded graphene “daddy, principal”,
    When i can start to reload a child graphe, web site shurt down like explained.

    So now i cannot use a graphene child; can you help me? My site: www. wingsd.it

    Please help!
    Thanks a lot
    Andrea

  2. Alain RONK

    Hello Prasanna, how are you ?

    I asked Josh but he did not respond, it may be on vacation …

    I find the modification for my personal 404 !
    Look here : http://www.modelisme-racer.fr/xc5cv8fkjj,;:!85875dfdvbn,;klmhjklcvn,l

    But, I have a question :
    I have the child theme for Graphene.
    If I place the file 404.php in the theme child, and if there is an update of the theme that has a modification in this file, I would not have the modification !
    What is the solution for all these files, except functions.php and style.css, please?

    Best regards
    Alain
    Website : http://www.modelisme-racer.fr

  3. Adam @ TPR

    Awesome write up … can’t believe I didn’t do this before …. nice and easy. No more re-tracing all my custom steps with every update.

    1. Prasanna SP

      Glad you’ve found it useful. Thanks Adam!

  4. globe-tukuru

    Your child theme work well!
    Thank you very much!

    1. Prasanna SP

      Thanks for your contributions globe-tukuru!

  5. Mango

    Greetings Prasanna,

    This is very timely information. One of my sites corrupted overnight for unknown reasons, possibly a rubbish plugin. Anyway today I am rebuilding from scratch as the original site was getting a bit aged etc, and was thinking about which theme to use.

    The Theme upgrade is always an issue as your custom mods get trashed unless you have a child theme, but many people struggle with the concept of Child Themes. That issue is now solved and my decision about which Theme to use is easily made.

    Just a question; will this Child Theme work with the new version 8 update? And how far away is version 8?

    By the way, I really like your Theme!

    Thanks again,

    Mango
    Bangkok

    1. Mango

      Sorry, I meant Graphene version1.8 of course.

      Been a long night!

      Mango

    2. Prasanna SP

      Hi Mango! This Child theme works with any version of Graphene theme, unless you change the name of parent theme! :)

      Sorry to hear that your site got corrupted. Do you have back ups of your files and databases. If you have them, you can restore your site with those files. Let me know if you want any help from me to fix your site.

  6. Andrea155

    Hi Prasanna, and thanks for your work! I’m a beginner using Graphene theme .. i had installed a portal child, but my function php (portal child, function php) is completely emty… this is a very problem for me, because i cannot past any modification (copied from support forum) it doesn’t work.. from control panel i n word press i can only see
    my code in the higjest part of site…

    my intersed is only obtain rotation header images.. i undesrtand that i have to modify php function but:
    1) how
    2) whi ch codes insert?

    Thanks
    Andrea

    1. Prasanna SP

      Hi Andrea!
      You need to put any php functions/code between opening (<?php) and closing (?>) php tags. Otherwise it’ll break the theme.

      Example of child theme functions.php

      <?php
       
      // Some code here
       
      ?>

      Read more about php tags and basics here and here.

      1. Andrea155

        thanks!!! you have fixed my crashed site.. now iot works perfectly!

  7. boxboy

    Using this. BTW is good.

  8. Neil

    Hi, I just wanted to say thanks for the child theme. I have it installed on two of my Graphene sites and it works just fine.

    However as a newbie I have what is probably a stupid question. When the next Graphene parent update comes along do I simply click update on the WordPress dashboard without making any changes to the installed child theme?

    Hope that makes sense.

  1. How to change / translate a string in Graphene Theme » Prasanna SP

    [...] Here is a custom function to change or translate a string in graphene theme without messing up with parent theme files. This function goes in your child theme’s functions.php file. So, if you are not yet using a child theme, get it now. [...]

  2. Grapheneテーマ/ 子テーマのテンプレート » 自分めも

    [...] Graphene Child Theme Template [...]

  3. Graphene Slider on other pages » Prasanna SP

    [...] already using child theme in your site, you can skip 1st and 2nd steps) Important!See – Graphene Child Theme Template. It has all the necessary files for your theme [...]

  4. How to add date to Graphene Theme Top Bar » Prasanna SP

    [...] This method requires no plugin, but involves editing child theme’s functions.php file. So, if you’re not using child theme yet, go get it! [...]

  5. Animate Return to top using jQuery in Graphene Theme » Prasanna SP

    [...] The scripts I mention here need to be added to child theme of Graphene Theme. So, if you’re not yet using Graphene Child Theme, get it here. [...]

  6. jQuery drop down menu in Graphene Theme » Prasanna SP

    [...] Note: The scripts I mention here need to be added to child theme of Graphene Theme. So, if you’re not yet using a Child Theme yet, get it here. [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code snippet between <code> and </code>. Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.