SHARE
TWEET

Cejsinc.com Functions.php

a guest Jul 13th, 2015 212 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. * Theme Name: CEJS Pro
  3. * Theme URI: http://presscustomizr.com/extension/customizr-pro/
  4. * Description: *
  5. * Version: CEJS Version
  6. * Author: *
  7. * Author URI: *
  8. * Tags: gray, white, light, blue, red, yellow, green, purple, orange, black, one-column, two-columns, three-columns, left-sidebar, right-sidebar, fluid-layout, responsive-layout, custom-menu, custom-colors, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, sticky-post, post-formats, rtl-language-support, editor-style
  9. * Text Domain: customizer
  10. * Copyright: (c) 2015 Nicolas GUILLAUME (Press Customizr), Nice, France
  11. * License: GNU General Public License v2.0 or later
  12. * License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. */
  14.  
  15.  
  16. /**
  17. * The styleheets of Customizr are located in inc/assets/css. Each skin has its own stylesheet : blue.css, green.css, ...
  18. * The current stylesheet is loaded after the main skin stylesheet.
  19. *
  20. * IMPORTANT : If you write your CSS code below, it will be deleted when you'll update the theme.
  21. * If you want to make quick style test / changes, consider using the Custom CSS section in appearance > customize > advanced options > Custom CSS, it will persist on update since it is saved in your database.
  22. * To make important CSS customizations, you'll want to use a child theme and add your css code in the style.css file of it.
  23. */
  24.  
  25. /*make the menu sub-menu items drop down on mouse hover */
  26. ul.nav li.dropdown:hover > ul.dropdown-menu{
  27.     display: block;
  28.     margin: 0;
  29. }
  30.  
  31. /* logo (change width from 0-100%; float from left/center/right) */
  32. .navbar-wrapper .brand {width:100%; float:left;}
  33.  
  34.  
  35.  
  36.  
  37. /* Move the extra widget area to the right of the page*/
  38. .my-extra-widget {float: right;}
  39.  
  40. .navbar-wrapper .navbar h2, h2.site-description {
  41. /* Change (red) font color      */
  42. color:          #08c;
  43. /* Change (Garamond) font family */
  44. font-family:    Garamond;
  45. /* Change (20px) font size      */
  46. font-size:      30px;
  47. /* Change (19%) move to left    */
  48. padding-right:  1%;
  49. /* Change (normal) italic-normal-oblique */
  50. font-style:     normal;
  51. /* */
  52. }
  53.  
  54.  
  55. .row-fluid .span9 {
  56. width: 65%;
  57. float: right;
  58. }
  59.  
  60.  
  61.  
  62.  
  63. footer#footer p {
  64. text-align: center;
  65.  
  66. }
  67.  
  68. footer#footer h3 {
  69. text-align: center;
  70. }
  71.  
  72. #footer_two {
  73. text-align:     center ;
  74. }
  75.  
  76. @media (max-width: 480px) {
  77. .tc-header .site-logo img{
  78. max-height:100px!important;
  79. }
  80.  
  81. }
  82.  
  83. .cta {
  84. color: #595959;
  85. font-family: 'Droid Serif',sans-serif;
  86. font-size: 13px;
  87. line-height: 20px;
  88. -webkit-font-smoothing: subpixel-antialiased;
  89. background: none #f2f2f2;
  90. margin: 50px auto 0 auto;
  91. padding: 30px 10px;
  92. text-align: center;
  93. -moz-box-shadow: inset 0 0 30px #ddd;
  94. -webkit-box-shadow: inset 0 0 30px #ddd;
  95. box-shadow: inset 0 0 30px #ddd;
  96. }
  97. .cta h4 {
  98. font-family: 'Droid Serif',sans-serif;
  99. font-style: normal;
  100. font-weight: 200;
  101. color: #08c;
  102. font-size: 28px;
  103. line-height: 26px;
  104. margin: -3px 0 12px 0;
  105. text-align: center;
  106. }
  107. .cta h4.phone {
  108. font-size: 35px !important;
  109. /*font-style: italic; change to italic if I want*/ C
  110. line-height: 50px;
  111. margin: 15px 0;
  112. }
  113. .cta h5 {
  114. line-height: 20px;
  115. /* text-rendering: optimizeLegibility; */
  116. -webkit-font-smoothing: subpixel-antialiased;
  117. font-smoothing: subpixel-antialiased;
  118. font-style: normal;
  119. font-weight: 200;
  120. margin-top: 0;
  121. color: #black;
  122. font-size: 20px;
  123. margin-bottom: 10px;
  124. }
  125. .cta a.btn {
  126. text-decoration: none;
  127. vertical-align: baseline;
  128. outline: none;
  129. line-height: 46px;
  130. text-shadow: 1px 1px #729b35;
  131. color: #fff;
  132. font-size: 14px;
  133. font-weight: 200;
  134. margin-top: 20px;
  135. display: inline;
  136. padding: 14px 8px;
  137. background: url('http://www.cejsinc.com/wp-content/uploads/2015/03/btn-bg1.png') center center;
  138. }
  139. a.btn+span.tc-external:after {
  140. content:none;
  141. }
  142. .cta a.btn:hover {
  143.  color: #FFFFFF;
  144.  opacity: 0.7;
  145. }
  146. .cta  a.btn:focus, .cta  a.btn:hover {
  147. background-position: 0 0;
  148. }
  149. @media (min-width: 391px) {
  150. .cta {padding: 30px 30px;}
  151. .cta a.btn {font-size: 16px;
  152.   padding: 14px 16px;}
  153. }
  154. @media (min-width: 496px) {
  155. .cta {padding: 30px 40px;}
  156. .cta a.btn {font-size: 20px;
  157. padding: 14px 26px;}
  158. }
  159.  
  160. h5{
  161. font-size: 40px;
  162. color: #fff;
  163. font-weight:normal;
  164. text-shadow: 0 1px 1px rgba(0,0,0,.4);
  165. }
  166.  
  167.  
  168. @media (max-width: 600px) {
  169.   .carousel-caption h5 {
  170.     display: inline;
  171.     font-size: 18px;
  172.    
  173.   }
  174. }
  175.  
  176. add_filter('tc_fp_title' , 'my_custom_fp_titles', 10 ,3);
  177. function my_custom_fp_titles( $original_title , $fp_id = null , $page_id = null ) {
  178.    
  179.     //assigns a custom title by page id
  180.     $custom_title = array(
  181.         //page id => 'Custom title'
  182.         24 => 'My custom title',
  183.         499 => 'Title Example for page id #9'
  184.     );
  185.    
  186.     //if no custom title is defined for the current page id, return original
  187.     if ( ! isset($custom_title[$page_id]) )
  188.         return $original_title;
  189.  
  190.     return $custom_title[$page_id];
  191. }
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