WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hoo …
Genesis Simple Hooks is a WordPress plugin that allows you to insert code snippets into the Genesis Theme Framework. It provides a user-friendly interface to attach HTML, Shortcodes, and PHP to over 50 action hooks, simplifying the process of customizing your Genesis theme without editing theme files directly.
This plugin is suitable for developers and users familiar with the Genesis framework who want to modify elements like footers, post-info, and post-meta text using code snippets. It streamlines the integration of custom code into your theme, making it more accessible for those who may find traditional coding methods challenging.
Best for: This plugin suits developers and users of the Genesis Theme Framework looking to customise their themes easily.
What it does well
Where it falls short
Genesis Simple Hooks offers a practical solution for modifying Genesis themes through an intuitive interface. It is particularly useful for those comfortable with coding who want to enhance their site's functionality.
Nathan Rice's own description of Genesis Simple Hooks, lightly tidied.
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
Instead of the sometimes tedious and unfamiliar process of creating functions in your theme files, this plugin gives you an attractive, easy to use interface for modifying your Genesis theme via the hook system. The plugin accepts HTML, Shortcodes, and PHP and gives you access to all 50+ hooks built into the Genesis theme, and a few built-in WordPress hooks as well.
The most common request from Genesis users is how to properly modify their footer, post-info, and post-meta text. Here are some code snippets that might prove helpful in doing this:
Modifying the post-info
<div class="post-info">
<span class="time"><?php the_time('F j, Y'); ?></span> <span class="author">by <?php the_author_posts_link(); ?></span> <span class="post-comments"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a></span> <a class="post-edit-link"><?php edit_post_link('(Edit)', '', ''); ?></a>
</div>
Modifying the post-meta
<div class="post-meta">
<span class="categories">Filed under: <?php the_category(', ') ?></span> <span class="tags">Tagged with <?php the_tags('') ?></span>
</div>
Modifying the Footer
<div class="gototop">
<p><a href="#wrap" rel="nofollow">Return to top of page</a></p>
</div>
<div class="creds">
<p>Copyright © <?php echo date('Y'); ?> · <a href="http://www.studiopress.com/themes/genesis" title="Genesis Theme Framework">Genesis Theme Framework</a> by <a href="http://www.studiopress.com/">StudioPress</a> · <a href="https://wordpress.org/" title="WordPress">WordPress</a> · <?php wp_loginout(); ?></p>
</div>
Note: You must have the Execute PHP on this hook option selected in order to use template tags
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.