Adding code to WP file

  • Mod

    Kenneth John Odle

    #36073

    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.

    Anonymous

    #36074

    Have you looked at my site?

    How do I fix the menu bar?

    Anonymous

    #36075

    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

    Anonymous

    #36076

    Website

    Any advances to resolve the format of my website i.e. width of nav bar, location of sidebar and content.

    Raynald`1

    Mod

    Kenneth John Odle

    #36077

    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

    Anonymous

    #36078

    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

    Kenneth John Odle

    #36079

    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.

    Anonymous

    #36080

    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

    Kenneth John Odle

    #36081

    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:

    bogZIwS.jpg

    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

    Anonymous

    #36082

    3io8srpfedtadx2h9id1_Bluehost.png

    You should only have two files in your child theme folder:

    style.css

    functions.php CORRECT

Viewing 10 posts - 11 through 20 (of 34 total)

  • You must be logged in to reply to this topic.