WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Genesis Simple Hooks

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

Code Snippets

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 &copy; <?php echo date('Y'); ?> &middot; <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> &middot; <a href="http://wordpress.org/" title="WordPress">WordPress</a> &middot; <?php wp_loginout(); ?></p>
</div>

Note: You must have the Execute PHP on this hook option selected in order to use template tags

Requires: 3.6 or higher
Compatible up to: 3.6.1
Last Updated: 2013-12-2
Downloads: 275,985

Ratings

4 stars
4.5 out of 5 stars

Support

1 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,4,4
100,6,6 100,1,1
100,4,4 100,3,3
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,2,2 100,1,1
100,1,1
100,2,2 100,2,2
67,3,2
100,1,1 0,2,0 0,3,0 27,11,3
100,2,2
33,3,1
100,2,2
100,4,4
100,1,1
20,5,1
0,1,0
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1