Making a functions.php child
-
So I have uploaded my
Code:functions.phpto
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:
Code:<div class=”sliderpost_featured_image”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php echo $image; ?>
</div>How do I make this overwrite to my
Code:functions.php?
Thank you
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>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’
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.
AdminRegarding the link for the slider image, I’ll add that into the theme in the next update.
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.