• Hi everyone,
    Im attempting to modify the buttons on the latest version of LightWord. I have my child theme setup, with the modified nav.png buttons copied into my child theme, however the path does not seem to be relative to the stylesheet path, but to the template path (so i would have to modify the buttons in the parent theme, which is what im obviously trying to avoid).

    Ive been working away at this for a day or two now, and am really stuck.
    Ive been looking in the header.php, functions.php, modified the child CSS file, etc. but Im obviously missing something
    Has anyone succeded in doing this or can shed light on anythign im missing??

Viewing 4 replies - 1 through 4 (of 4 total)
  • what buttons?

    you haven’t posted any code here, but i guess:

    in child themes, use:
    bloginfo('stylesheet_directory')
    instead of
    bloginfo('template_directory')

    unless you call them from within the style.css.

    can you post a link to your site to illustrate the problem?

    Thread Starter Badams66

    (@badams66)

    http://www.projectsnowdrift.com is where the blog is hosted.
    At the top there is the nav buttons to the various pages. These are using a single png file and uses CSS to change them from what I can tell.

    Here is the code from the parent theme CSS thats relative to those buttons:

    http://pastebin.com/c0ZjUmff

    Whats happening though is that its still getting the image (nav.png) from the parent directory instead of the child directory, even if i copy that code into my child style.css

    i can’t really see the child theme in your site:

    the stylesheet has the name ‘Lightword’;
    but it also has the line ‘template: lightword’;

    the stylesheet points to the parent theme position:
    /wp-content/themes/lightword/style.css

    does your child theme link to its own stylesheet?
    something like:

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    (be sure that is does not have ‘template_directory’ there)

    Thread Starter Badams66

    (@badams66)

    Thanks for all your help alchymyth… i have NO idea what I changed, but it seems to be working fine now.

    I didnt have the child theme active when I had you check it, so I went to go activate it again, and the buttons were exactly how I needed them… Strangest thing ever…

    My apologies for wasting your time!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Modifying Buttons with Child Theme’ is closed to new replies.