Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 4.16 KB  |  views: 970  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. remove_action( 'genesis_loop', 'genesis_do_loop' );
  3.  
  4. add_action( 'genesis_loop', 'bg_code' );
  5. function bg_code() {  ?>
  6.  
  7.         <h1 class="entry-title"><?php _e('Code Snippets', 'genesis'); ?></h1>
  8.        
  9.         <div class="entry-content">
  10.        
  11.                 <p>From time to time I find myself looking for code that I can use when building themes. I'm guessing you have the same problem, so feel free to use what you see.</p>
  12.                 <p>Below is a list of best practices when coding for the Genesis Framework:</p>
  13.  
  14.                 <ul>
  15.                         <li><a href="http://www.briangardner.com/code/css-best-practices/">CSS Best Practices</a></li>
  16.                         <li><a href="http://www.briangardner.com/code/functions-best-practices/">Functions Best Practices</a></li>
  17.                 </ul>
  18.                
  19.                 <p>Below is a list of code snippets for the Genesis Framework:</p>
  20.                        
  21.                 <div class="archive-page">
  22.                
  23.                         <ul>
  24.                                 <li><a href="http://www.briangardner.com/code/add-body-class/">Add Body Class</a></li>
  25.                                 <li><a href="http://www.briangardner.com/code/add-featured-images/">Add Featured Images</a></li>
  26.                                 <li><a href="http://www.briangardner.com/code/add-footer-widgets/">Add Footer Widgets</a></li>
  27.                                 <li><a href="http://www.briangardner.com/code/add-mobile-meta-tag/">Add Meta Tag for Mobile Browsers</a></li>
  28.                                 <li><a href="http://www.briangardner.com/code/add-post-formats/">Add Post Formats</a></li>
  29.                                 <li><a href="http://www.briangardner.com/code/add-structural-wraps/">Add Structural Wraps</a></li>
  30.                                 <li><a href="http://www.briangardner.com/code/admin-management/">Admin Management</a></li>
  31.                                 <li><a href="http://www.briangardner.com/code/create-color-style-options/">Create Color Style Options</a></li>
  32.                                 <li><a href="http://www.briangardner.com/code/customize-author-box/">Customize Author Box</a></li>
  33.                                 <li><a href="http://www.briangardner.com/code/customize-footer/">Customize Footer</a></li>
  34.                                 <li><a href="http://www.briangardner.com/code/customize-header-url/">Customize Header URL</a></li>
  35.                                 <li><a href="http://www.briangardner.com/code/customize-post-info/">Customize Post Info</a></li>
  36.                                 <li><a href="http://www.briangardner.com/code/customize-post-meta/">Customize Post Meta</a></li>
  37.                                 <li><a href="http://www.briangardner.com/code/customize-post-navigation/">Customize Post Navigation</a></li>
  38.                                 <li><a href="http://www.briangardner.com/code/customize-search-form/">Customize Search Form</a></li>
  39.                         </ul>
  40.                        
  41.                 </div><!-- end .archive-page-->
  42.                
  43.                 <div class="archive-page">
  44.                
  45.                         <ul>
  46.                                 <li><a href="http://www.briangardner.com/code/enable-author-box/">Enable Author Box</a></li>
  47.                                 <li><a href="http://www.briangardner.com/code/load-custom-stylesheet/">Load Custom Stylesheet</a></li>
  48.                                 <li><a href="http://www.briangardner.com/code/author-box-title/">Modify Author Box Title</a></li>
  49.                                 <li><a href="http://www.briangardner.com/code/modify-gravatar-size/">Modify Gravatar Size</a></li>
  50.                                 <li><a href="http://www.briangardner.com/code/register-default-layout-setting/">Register Default Layout Setting</a></li>
  51.                                 <li><a href="http://www.briangardner.com/code/register-widget-areas/">Register Widget Areas</a></li>
  52.                                 <li><a href="http://www.briangardner.com/code/remove-edit-link/">Remove Edit Link</a></li>
  53.                                 <li><a href="http://www.briangardner.com/code/reposition-breadcrumbs/">Reposition Breadcrumbs</a></li>
  54.                                 <li><a href="http://www.briangardner.com/code/reposition-footer/">Reposition Footer</a></li>
  55.                                 <li><a href="http://www.briangardner.com/code/reposition-navigation/">Reposition Navigation</a></li>
  56.                                 <li><a href="http://www.briangardner.com/code/unregister-genesis-widgets/">Unregister Genesis Widgets</a></li>
  57.                                 <li><a href="http://www.briangardner.com/code/unregister-layout-settings/">Unregister Layout Settings</a></li>
  58.                                 <li><a href="http://www.briangardner.com/code/unregister-navigation-menus/">Unregister Navigation Menus</a></li>
  59.                                 <li><a href="http://www.briangardner.com/code/unregister-sidebars/">Unregister Sidebars</a></li>
  60.                                 <li><a href="http://www.briangardner.com/code/unregister-superfish-scripts/">Unregister Superfish Scripts</a></li>
  61.                         </ul>
  62.                        
  63.                 </div><!-- end .archive-page-->
  64.                                                                                                                                                                                                                        
  65.         </div><!-- end .entry-content -->
  66.  
  67. <?php
  68.  
  69. }
  70.  
  71. genesis();
clone this paste RAW Paste Data