Advertisement
sscovil

Center Logo In iFeaturePro WordPress Theme

Feb 24th, 2012
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. <?php
  2.  
  3. // Remove default iFeature theme functions & replace with custom functions
  4. function mnsp_unhook_ifeature_functions() {
  5.  
  6.     // Replace the default ifeature_logo_description_content() theme function with mnsp_ifeature_logo_description_content() below
  7.     remove_action( 'ifeature_logo_description', 'ifeature_logo_description_content');
  8.     add_action( 'ifeature_logo_description', 'mnsp_ifeature_logo_description_content');
  9.  
  10. }
  11. add_action('init','mnsp_unhook_ifeature_functions');
  12.  
  13.  
  14. // Function to eliminate description and center logo for Logo + Description option; replaces ifeature_logo_description_content()
  15. function mnsp_ifeature_logo_description_content() {
  16. ?>
  17.     <div class="container">
  18.         <div class="row">
  19.        
  20.             <div class="twelve columns" style="text-align: center;">
  21.                
  22.             <!-- Begin @Core header sitename hook -->
  23.                     <?php synapse_header_sitename(); ?>
  24.             <!-- End @Core header sitename hook -->
  25.            
  26.                
  27.             </div> 
  28.            
  29.         </div><!--end row-->
  30.     </div> 
  31.  
  32. <?php
  33. }
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement