-
Notifications
You must be signed in to change notification settings - Fork 873
Add hooks to inject own code by using a childtheme or a plugin #31
Comments
Hello Adrian. Thank you for the nice words! It sounds like a good idea to add more hooks, if it makes things easier for child-theme users. Are there any negative side effects by adding more hooks in the template files? If you have the time and opportunity to do something about this, feel free to open a pull request. I'll definitely look into it. :-) Cheers! |
Hello Ole, nice! I can't see any disadvantages or negative side effects of using own hooks. They just make the theme plugin and childtheme friendly :-) Adrian |
I was about to start adding in some custom theme functions [and it's great that there are already loads of It works really well with FoundationPress [disable the plugin JS/CSS and use the theme versions]. |
It seems that there are only do_action hook statements coming from the Wordpress Core. I just grepped for do_action in this foundationpress theme and just found one in the comments.php It might be right that your easy foundation shortcodes plugin works as it should but I try to avoid using 3th-party plugins. |
I'd like to see a webpage with an overview of the actual hooks implemented in FP. I'm scanning php files now to get an idea. Not so user friendly. |
First of all: great work! its a very nice and clean theme that fits almost all my needs.
I have just a little suggestion:
I am writing a complete childtheme and several plugins to use them with foundationpress. It would be great to add several hooks (do_action) to some places (at the beginning and the end of the main layout, before and after opening/closing tags in the template files etc.)
With the hooks, it would be possible to inject own code without "hacking into" your theme and losing the ability to upgrade it.
If you need some helping hands, let me know :-)
Thanks for your reply
Adrian
The text was updated successfully, but these errors were encountered: