Should I use a wordpress hook to replace a file?
I'm having a little trouble deciding how开发者_JS百科 I should be implementing hooks in wordpress.
I'm currently using a child theme and in the single.php file of the parent theme there is a function <?php con_get_sharebox(); ?>
that gets the contents of a file sharebox.php.
Now the sharebox.php file is the file I'd like to edit but I don't know how to do this using hooks.
I tried simply adding a different sharebox.php to my child theme but because its not part of the standard theme files I don't think it gets loaded.
Any ideas on what I can do?
精彩评论