Adding code to WP file
-
Mod
Do NOT copy the theme’s files over to your child theme. That only causes problems, as you have seen.
Your child theme functions file should look like this:
<?php
// Insert custom functions here
?>except you would delete
// Insert custom functions here
and replace it with whatever function you have on hand.Have you looked at my site?
How do I fix the menu bar?
FYI the code required to change the language works great.
Now to fix the menu bar and centering of the image on the page would be nice.
Raynald
Mod
Your child theme stylesheet is missing. (It returns a 404.)
http://www.share-memories.com/wp-content/themes/graphene-child/style.css?ver=3.5.1
I have the following code in my graphene-child directory style.css.
/*
Theme Name: Graphene Child
Theme URI: http://share-memories.com/graphene-theme
Description: Child theme for the Graphene theme
Author: Your name here
Author URI: http://share-memories.com/about/
Template: graphene
Version: 1.0
*/
@import url(“../graphene/style.css”);
/* Your modification goes here */
Mod
It doesn’t matter what you have in that file if the file isn’t in the child theme directory. Where is your child theme stylesheet? It’s not in the child theme folder, and the child-theme folder doesn’t seem to be in the themes folder.
This is what my director/ looks like with graphene-child in the theme folder below the graphene directory
wp-admin
wp-content
languages
plugins
themes
graphene
admin
images
includes
js
languages
graphene-child
with following folders in the grapheme-child directory
wp-admin
wp-content
languages
plugins
themes
graphene
admin
images
includes
js
languages
graphene-child
wp-admin
wp-content
languages
plugins
themes
graphene
admin
images
includes
js
languages
graphene-child
functions.php and style.css
What can i say more
Mod
Your Graphene child folder should be in your themes folder, right next to the original Graphene folder. This is what it looks like for me in localhost:
I’ve highlighted the three child themes I’ve created.
Look at the link I gave you above. It tells you the exact path that your child theme folder should be in:
>>share-memories.com >> wp-content >> themes >>
You should only have two files in your child theme folder:
style.css
functions.php
You should only have two files in your child theme folder:
style.css
functions.php CORRECT
- You must be logged in to reply to this topic.