Ledger Nano X - The secure hardware wallet
SHARE
TWEET

RobGenesis

a guest Nov 9th, 2013 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** Reposition header outside main wrap */
  2. remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
  3. remove_action( 'genesis_header', 'genesis_do_header' );
  4. remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ) ;
  5.  
  6. add_action( 'genesis_before', 'genesis_header_markup_open', 5 );
  7. add_action( 'genesis_before', 'genesis_do_header' );
  8. add_action( 'genesis_before', 'genesis_header_markup_close', 15 );
  9.  
  10.  
  11. -------------------------------------------------------------------
  12.  
  13. The above code re positioned my header div outside the main wrap div.
  14. By default it looks like this:
  15.  
  16. <div class="wrap">
  17. <header></header>
  18. <div class="inner"></div>
  19. <div class="footer"></div>
  20. </div>
  21.  
  22. after putting the above code in functions.php the structure will look like this:
  23.  
  24. <header></header>
  25. <div class="wrap">
  26. <div class="inner"></div>
  27. <div class="footer"></div>
  28. </div>
  29.  
  30. What im asking now is:
  31.  
  32. Is it possible to add a new div wrapper in my header div?
  33. I want the structure to look like this:
  34.  
  35. <div class="header-wrap"><header></header></div>
  36. <div class="wrap">
  37. <div class="inner"></div>
  38. <div class="footer"></div>
  39. </div>
  40.  
  41. Thanks!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top