Should I use a wordpress hook to replace a file?
-
I’m having a little trouble decided how I should be implementing hooks in wordpress.
This is my problem,
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?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Should I use a wordpress hook to replace a file?’ is closed to new replies.