Making a functions.php child

  • Anonymous

    #2056

    So I have uploaded my

    Code:
    functions.php

    to

    Code:
    wp-content/themes/graphene-child/

    And all of my other child files have worked fine in the fact that they just overwrite the parent file, however I was reading that if I just make a copy of functions.php and do my edits and then upload it to

    Code:
    wp-content/themes/graphene-child/

    it will cause an error (And it does)

    So I have come to this problem, I do not need to add a new functions to

    Code:
    functions.php

    , I just need to overwrite this line:

    Code:
    <div class=”sliderpost_featured_image”>
    <?php echo $image; ?>
    </div>

    to:

    How do I make this overwrite to my

    Code:
    functions.php

    ?

    Thank you

    http://30dayslater.net/newtheme/

    Anonymous

    #18438

    First, that code doesn’t look right. I’m not sure how it’s even working.

    Try this instead.

    <div class="sliderpost_featured_image">
    <a href="<?php the_permalink(); ?>"><?php echo $image; ?></a>
    </div>

    Anonymous

    #18439

    Hey yeah, that is the code that I am using… I don’t know how to write in a thick box that doesn’t change my code, when I use the ‘code’ tag it changes the ‘a href’

    Anonymous

    #18440

    You may use backticks around any code you post here. That way, it’s not parsed by the browser.

    It’s the little backwards apostrophe, usually at the top left of the keyboard. It has the “~” on the key as well. Wrap your codes with backticks.

    Admin

    Syahir Hakim

    #18441

    Regarding the link for the slider image, I’ll add that into the theme in the next update.

    Anonymous

    #18442

    Sweet thank you very much Syahir Hakim!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!