Advertisement
jeeni

WordPress TwentyEleven 2-col PAGE Child Theme CSS

Nov 8th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.93 KB | None | 0 0
  1. /* Use the following code in your WordPress (TwentyEleven) Child Theme CSS to quickly create a Sidebar on your site PAGES. After you're done, paste the following PHP code just before the get_footer PHP code on your page.php file: <?php get_sidebar(); ?> */
  2.  
  3. .left-sidebar.singular #content{
  4. margin:0 5% 0 35%;
  5. width:60%;
  6. }
  7. .right-sidebar.singular #content{
  8. margin:0 35% 0 5%;
  9. width:60%;
  10. }
  11. .singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title{
  12. width:100%;
  13. }
  14. #secondary{
  15. margin-right: 5%;
  16. width: 25%;
  17. }
  18. .right-sidebar #primary{
  19. margin: 0 -35% 0 0 !important;
  20. }
  21. .left-sidebar #primary{
  22. margin: 0 0 0 -35% !important;
  23. }
  24. .singular.page .hentry{
  25. padding:0px;
  26. }
  27. .right-sidebar #primary{
  28. float:left;
  29. margin:0 -26.4% 0 0;
  30. width:100%;
  31. }
  32. /* This moves your 'Edit link' out of the way of the content text. */
  33. .singular .entry-meta .edit-link a{
  34. left:auto;
  35. right:0px;
  36. top:20px;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement