Advertisement
Guest User

Lightfast

a guest
Jun 4th, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. Functions.php
  2.  
  3. <?php
  4. // Faster than @import
  5. add_action( 'wp_enqueue_scripts', 'my_child_theme_scripts' );
  6. function my_child_theme_scripts() {
  7. wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
  8. }
  9. function skeleton_header_open() {
  10. echo '<div id="header">';
  11. echo '<div class="topbar">';
  12. // phone number
  13. echo '<span class="tel">1.800.555.1212</span>';
  14. // search form
  15. get_search_form(true);
  16. echo '<ul class="header_social_icons">';
  17. // Add your social icons below
  18. echo '<li><a href="http://twitter.com"><i class="fa fa-twitter"></i></a></li>';
  19. echo '<li><a href="http://facebook.com"><i class="fa fa-facebook"></i></a></li>';
  20. echo '<li><a href="http://plus.google.com"><i class="fa fa-google-plus"></i></a></li>';
  21. // end social icons
  22. echo '</ul>';
  23. echo '</div>';
  24. echo '<div class="container">';
  25. echo '<div class="sixteen columns">';
  26. }
  27.  
  28. style.css
  29.  
  30. /*
  31. Theme Name: Lightfast Child
  32. Theme URI: http://www.simplethemes.com/wordpress-themes/theme/lightfast
  33. Description: Lightfast Child theme. Use this child theme to safely make modifications to the existing theme. Using a child theme ensures that you do not lose the modifications with theme updates.
  34. Version: 1.0.0
  35. Author: Simple Themes
  36. Author URI: http://www.simplethemes.com
  37. Template: lightfast
  38. */
  39.  
  40.  
  41. /*
  42. ----------------------------------------------------------------------------------------------------------
  43. ----------------------------------------------------------------------------------------------------------
  44.  
  45. This child theme enables you to make customizations while allowing for safe updates to the parent theme.
  46. The parent theme's style.css is imported below. If you wish to make customizations, do one of the following:
  47.  
  48. Option A.) Remove the import below, and copy the contents of lightfast/style.css into this file, but leave the (above) child theme head in tact!
  49. Option B.) Add specific rules BELOW the import. This is intended for minimal customizations.
  50.  
  51. ----------------------------------------------------------------------------------------------------------
  52. ----------------------------------------------------------------------------------------------------------
  53.  
  54. */
  55. @import url("../lightfast/style.css");
  56. /* @group Topbar Addon */
  57. #header {
  58. padding-top: 0;
  59. }
  60.  
  61. .topbar {
  62. width: 100%;
  63. background: #333;
  64. height: 32px;
  65. margin-bottom: 20px;
  66. }
  67. .topbar .tel {
  68. float: left;
  69. color: #fff;
  70. line-height: 32px;
  71. margin-left: 40px;
  72. }
  73. .topbar #searchform {
  74. float: right;
  75. margin-left: 6px;
  76. margin-right: 40px;
  77. }
  78. .topbar #searchform label {
  79. display: none;
  80. }
  81. .topbar #searchform #s {
  82. height: 24px;
  83. margin-top: 4px;
  84. line-height: 24px;
  85. background: #4d4d4d;
  86. border: 1px solid #404040;
  87. color: #fff;
  88. }
  89. .topbar #searchform #s:focus {
  90. -moz-box-shadow: none;
  91. -webkit-box-shadow: none;
  92. box-shadow: none;
  93. }
  94. .topbar #searchform input#searchsubmit {
  95. background: #262626;
  96. font-size: 14px !important;
  97. padding: 0 8px !important;
  98. height: 24px;
  99. margin-top: 4px;
  100. }
  101.  
  102. .header_social_icons {
  103. float: right;
  104. list-style: none;
  105. margin: 0;
  106. padding: 0;
  107. border-left: 1px solid #4d4d4d;
  108. }
  109. .header_social_icons li {
  110. display: inline-block;
  111. padding: 0;
  112. margin: 0;
  113. line-height: 32px;
  114. border-right: 1px solid #4d4d4d;
  115. }
  116. .header_social_icons li a {
  117. color: #fff;
  118. height: 32px;
  119. width: 32px;
  120. display: inline-block;
  121. text-align: center;
  122. }
  123. .header_social_icons li a:hover {
  124. color: #3FA6EC;
  125. }
  126.  
  127. /* @end */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement