BarkingBird

Webdesign Hacks

Aug 22nd, 2017
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.72 KB | None | 0 0
  1. //***SPECIAL CHARACTERS TO USE IN WORDPRESS EDITOR**//
  2.  
  3. | • ♦ —
  4.  
  5.  
  6. /***HR CUSTOMIZATION**/
  7. <hr align="left" noshade="noshade" size="2" width="40%" />
  8.  
  9. <hr style="height:1px; border:none; color:#000; background-color:#000; width:60%; text-align:left; margin: 0 auto 0 0;">
  10.  
  11. //***PUT LIST IN COLUMNS***//
  12. <ul class="two-columns">
  13. <li>Load Balancing</li>
  14. <li>CCTV</li>
  15. </ul>
  16.  
  17. In css add:
  18. .two-columns {
  19. -webkit-column-count: 2;
  20. -moz-column-count: 2;
  21. column-count: 2;
  22. -webkit-column-gap: 40px;
  23. column-gap: 40px;
  24. -moz-column-gap: 40px;
  25. }
  26.  
  27. /* ************ CENTER PIC IN FULL WIDTH ROW AT DESIGNATED SCREEN WIDTH************/
  28. @media (max-width: 1280px) {
  29. .picshadow {
  30. float: none !important;
  31. display: block !important;
  32. margin-left: auto!important;
  33. margin-right: auto!important;
  34. }
  35. }
  36.  
  37. /* ************in line code to prevent a selected section of text from wrapping************/
  38. white-space: nowrap; overflow: hidden;
  39.  
  40. example (as seen on treescapeonline.com, homepage):
  41. <span style="font-size: 150%;"><strong>Charlotte</strong>:</span> <a style="white-space: nowrap; overflow: hidden;" href="tel:+17045986641"><span style="color: #c18811;">(704) 598-6641</span></a>
  42.  
  43. in the example above, the phone number will not break at the hyphen or between the area code and the main number as the screen size decreases. The break will occur before the area code .
  44.  
  45. //*************LINE BREAK************//
  46.  
  47. <br />
  48.  
  49. <br>
  50.  
  51. <br style=”height:1.5em” />
  52.  
  53. <div style="height:12px;"></div>
  54.  
  55. //*********PARAGRAPH BREAK*********//
  56.  
  57. <p></p>
  58.  
  59.  
  60. //***IN-LINE SPACING***//
  61. <h5 style="margin-bottom: 5px;">Office Hours</h5>
  62. <p style="margin-left: 26px;"><strong>Mon, Fri: </strong>
  63.  
  64.  
  65. //***FORCE A DOCUMENT TO BE DOWNLOADED, NOT OPENED ON CLICK***//
  66.  
  67. INSERT:
  68. download=""
  69.  
  70. <a href="http://resourcepreservationsolutions.com/wp-content/uploads/2017/02/3346-RPS-09-16-Contact-Information-Form-fillable.pdf" download="">Contact Information Form</a>
  71.  
  72.  
  73.  
  74.  
  75. //***LINK TO SECTION ON PAGE***//
  76.  
  77. <a href="#codeword"></a>
  78. <a name="codeword"></a>
  79.  
  80. In Nav Menu:
  81. http://green.barkingbirdmedia.info/community-involvement/#events
  82. <a name="events"></a>
  83.  
  84. http://yourwolf.group/#who-are-we
  85. <a style="margin-top:-100px;" name="who-are-we"></a>
  86.  
  87. //***CLICKABLE PHONE NUMBER***//
  88.  
  89. <a href="tel:+16085551212">Phone me!</a>
  90.  
  91. //***TEXT SHADOW***//
  92.  
  93. <span style="text-shadow: 2px 2px 2px rgba(51, 51, 51, 0.95);">BB Brown</span>
  94. text-shadow: 0 0 1rem rgba(100,100,100,.5);
  95.  
  96. //***ADD BORDER-RADIUS, DROP-SHADOW TO A PICTURE***//
  97.  
  98. style="border-radius: 10px;
  99. style="box-shadow: rgba(136, 136, 136, 0.82) 2px 2px 5px;
  100.  
  101. <img class="alignleft size-full wp-image-132" style="box-shadow: rgba(136, 136, 136, 0.82) 2px 2px 5px; border: 1px solid rgba(128,128,128,0.62); border-radius: 5px;" src="http://barkingbirdmedia.com/wp-content/uploads/2016/04/ProfilePic.png" alt="profile picture" width="100" height="100" /></div>
  102.  
  103. //**** OR ****//
  104.  
  105. In css, add:
  106. .picshadow {
  107. box-shadow: rgba(136,136,136,0.92) 2px 2px 15px;
  108. border-radius: 10px;
  109. }
  110.  
  111. Then, add picshadow to class
  112.  
  113. //***GRAVITY FORMS LIST INLINE (not down)***//
  114. In Custom CSS Class add:
  115.  
  116. gf_list_inline
  117.  
  118. //***ADD GREEN TAB TO DIVI SECONDARY MENY***//
  119. #et-secondary-nav > li:last-child {
  120. position: relative;
  121. height: 0;
  122. top: -9px;
  123. background: #65d615;
  124. padding: 22px;
  125. float: right;
  126. border-radius: 0px 1px 5px 5px;
  127. line-height: 0;
  128. font-size: 20px;
  129. }
  130.  
  131. div#et-secondary-menu {
  132. height: 20px;
  133. }
  134.  
  135. //*** Blurb Title Underline***//
  136. border-bottom: 2px solid #000;
  137. display: inline-block;
  138. margin-bottom:3%;
  139.  
  140. //***MICRODATA WITH STYLING***//
  141.  
  142. <div itemscope itemtype="http://schema.org/LocalBusiness" class="textwidget"><h5 style="margin-bottom: 5px;"><i class=" icon-mail-line"></i> Our address:</h5>
  143. <p style="margin-left: 26px;"><strong itemprop="name">Arbor Lawn, Inc.</strong><br/>
  144. <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
  145. <span itemprop="streetAddress">P.O. Box 98604</span><br/>
  146. <span itemprop="addressLocality">Raleigh</span>,
  147. <span itemprop="addressRegion">NC</span>
  148. <span itemprop="postalCode">27624</span></span></p>
  149. <h5 style="margin-bottom: 5px;"><i class=" icon-phone"></i> Have any questions?</h5>
  150. <p style="margin-left: 26px;"><a href="mailto:[email protected]">
  151. <span itemprop="email">[email protected]</span></a></p>
  152. <h5 style="margin-bottom: 5px;"><i class=" icon-comment-line"></i> Call us:</h5><p style="margin-left: 26px;"><a href="tel:+9199542244">
  153. <span itemprop="telephone">(919) 954-2244</span></a></p></div>
  154.  
  155.  
  156. //***MULTIPLE COLUMNS OF EQUAL HEIGHT**//
  157. ul.menu-items {
  158. column-count: 3;
  159. -webkit-columns: 3;
  160. -moz-columns: 3;
  161. }
  162.  
  163. @media only screen and (max-width: 1020px) {
  164.  
  165. ul.menu-items {
  166. column-count: 2;
  167. -webkit-columns: 2;
  168. -moz-columns: 2;
  169. }
  170. }
  171.  
  172. @media only screen and (max-width: 500px) {
  173.  
  174. ul.menu-items {
  175. column-count: 1;
  176. -webkit-columns: 1;
  177. -moz-columns: 1;
  178. }
  179. }
  180.  
  181. <ul class="menu-items">
  182. <li>Angel Crème</li>
  183. <li>Apple Crumb</li>
  184. <li>Apple Cinnamon</li>
  185. <li>Bavarian Crème</li>
  186. <li>Blueberry</li>
  187. <li>Boston Cream w/ Angel Crème</li>
  188. <li>Boston Cream w/Custard</li>
  189. <li>Cherry Frosted</li>
  190. <li>Chocolate Crème</li>
  191. <li>Chocolate Devil's Food Cake</li>
  192. <li>Chocolate Frosted Cake</li>
  193. <li>Chocolate Frosted Old Fashioned</li>
  194. <li>Chocolate Glazed</li>
  195. <li>Chocolate Sprinkled</li>
  196. <li>Cinnamon Cake</li>
  197. <li>Coconut w/Chocolate Frosting</li>
  198. <li>Coconut w/Vanilla Frosting</li>
  199. <li>Double Chocolate</li>
  200. <li>Dutch Crumb</li>
  201. <li>French Crullers (Available Friday-Sunday only)</li>
  202. <li>Glazed</li>
  203. <li>Jelly</li>
  204. <li>Lemon</li>
  205. <li>Maple Frosted</li>
  206. <li>Marble</li>
  207. <li>Mini Cinnamon Rolls</li>
  208. <li>Old Fashioned</li>
  209. <li>Orange Frosted</li>
  210. <li>Oreo</li>
  211. <li>Plain Cake</li>
  212. <li>Powdered Cake</li>
  213. <li>Strawberry Crumb</li>
  214. <li>Sour Cream</li>
  215. <li>Toasted Coconut w/Vanilla Frosting</li>
  216. <li>Vanilla Frosted Old Fashioned</li>
  217. <li>Vanilla Sprinkled</li>
  218. </ul>
  219.  
  220. //***TABLEPRESS - CLICKABLE ROW**//
  221.  
  222. Add this to end of page with the table:
  223.  
  224. <script type="text/javascript">
  225. jQuery(document).ready(function($){
  226. $('.tablepress-id-1').on( 'click', 'tr', function() {
  227. var $a = $(this).find('a').last();
  228. if ( $a.length )
  229. window.location = $a.attr('href');
  230. } );
  231. });
  232. </script>
  233.  
  234. Add this to Custom CSS in Plugin Options
  235.  
  236. .tablepress-id-1 tr:hover {
  237. cursor: pointer;
  238. }
  239.  
  240. /**** REMOVE OUTSIDE BORDERS ****/
  241. table#tablepress-2 {
  242. border: none;
  243. }
  244.  
  245. /**** REMOVE INNER BORDERS ****/
  246. .tablepress-id-2,
  247. .tablepress-id-2 tr,
  248. .tablepress-id-2 tbody td,
  249. .tablepress-id-2 thead th,
  250. .tablepress-id-2 tfoot th {
  251. border: none;
  252. }
  253.  
  254. /**** SET COLUMN WIDTH ****/
  255. .tablepress-id-2 .column-2 .column-1 {
  256. width: 100px;
  257. }
  258.  
  259.  
  260. ///**** LEFT ALIGN & RIGHT ALIGN ELEMENTS ON THE SAME LINE ****///
  261. In css, add:
  262. .gbleft {
  263. float: left;
  264. }
  265.  
  266. .gbright {
  267. float: right;
  268. text-align:right;
  269. }
  270.  
  271. In text editor box:
  272. <span class="gbleft" style="color: #fff;"><strong>Mon - Fri</strong></span><span class="gbright" style="color: #fff;">8am - 5pm</span><br />
  273.  
  274. //***INCREASE MAX UPLOAD FILESIZE**//
  275.  
  276. in htaccess, add the following:
  277.  
  278. php_value upload_max_filesize 128M
  279. php_value post_max_size 128M
  280. php_value max_execution_time 300
  281. php_value max_input_time 300
  282.  
  283. ///**** SMALL READ MORE BUTTON ****///
  284.  
  285. In css, add:
  286. .smallbtn {
  287. background: #396E8E;
  288. background-image: -webkit-linear-gradient(top, #396E8E, #2980b9);
  289. background-image: -moz-linear-gradient(top, #396E8E, #2980b9);
  290. background-image: -ms-linear-gradient(top, #396E8E, #2980b9);
  291. background-image: -o-linear-gradient(top, #396E8E, #2980b9);
  292. background-image: linear-gradient(to bottom, #396E8E, #2980b9);
  293. -webkit-border-radius: 28;
  294. -moz-border-radius: 28;
  295. border-radius: 28px;
  296. font-family: Arial;
  297. color: #ffffff;
  298. font-size: 12px;
  299. padding: 2px 5px 2px 7px;
  300. text-decoration: none;
  301. }
  302.  
  303. .smallbtn:hover {
  304. background: #3cb0fd;
  305. background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
  306. background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
  307. background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
  308. background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
  309. background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  310. text-decoration: none;
  311. color:#ffffff;
  312.  
  313. In text editor box, add:
  314. <p style="text-align: right;"><a class="smallbtn" href="http://caryhealthcareassociates.com/patient-center/cardiovascular-health/">Read More...</a></p>
  315. }
  316.  
  317. /* *** DIVI, SPLIT SOCIAL MEDIA ICONS IN TOP BAR TO RIGHT SIDE *** */
  318. @media only screen and (min-width: 980px) {
  319. #et-info-email {
  320. position: absolute;
  321. right: 0;
  322. }
  323. }
  324.  
  325. /* *** DIVI: ADDING COLUMN SPACE IN A ROW ON MOBILE DEVICES *** */
  326. @media (max-width: 980px){
  327. .page-id-129 .et_pb_row_2 .et_pb_column{margin-bottom: 11%;}
  328. }
  329.  
  330. ///**** CHANGE FAVICON ON BACKEND ****///
  331. Add the following in functions.php:
  332.  
  333. add_action('admin_head', 'show_favicon');
  334. function show_favicon() {
  335. echo '<link href="paste the entire URL of an image here" rel="icon" type="image/x-icon">';
  336. }
  337.  
  338. //***CUSTOM PAYPAL BUTTON WITH HOVER DROPSHADOW***//
  339.  
  340. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  341. <input type="hidden" name="cmd" value="_s-xclick">
  342. <input type="hidden" name="hosted_button_id" value="QSD5YZYT23AEA">
  343. <input type="image" src="https://artisanalbrewworks.com/wp-content/uploads/2018/02/superbowl-ticket1.png" onmouseover="this.src='https://artisanalbrewworks.com/wp-content/uploads/2018/02/superbowlbrewery-ticket-hover.png';" onmouseout="this.src='https://artisanalbrewworks.com/wp-content/uploads/2018/02/superbowlbrewery-ticket-flat.png';" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
  344. <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
  345. </form>
  346.  
  347. //***NINJA FORMS, SIDE-BY-SIDE FIELDS***//
  348. enter "one-half first" (no quotes) in Display > Custom Class Names > Container
  349.  
  350. enter "one-half" in the next one
  351.  
  352. //***NINJA FORMS, BUTTON STYLIZING***//
  353. #nf-field-5 {
  354. /* Center the button */
  355. display: block;
  356. margin: auto;
  357. font-size: 18px;
  358. background-color: #4C0063;
  359. color: #fff;
  360. border: 1px solid #2E003C;
  361. border-radius: 9px;
  362. padding: 10px 20% 10px 20%; /* Button size */
  363. text-shadow: 0 0 1px #453f3f; /* Text effects */
  364. box-shadow: 0px 1px 1px #444; /* box effects */
  365. }
  366.  
  367. #nf-field-5:hover{
  368. background-color: #2E003C;
  369. box-shadow: 1px 1px 2px #ccc;
  370. text-shadow: 5px 5px 8px #453f3f;
  371. }
  372.  
  373. /* ****************DESIGNATING THE ORDER OF ROW-COLUMNS ON MOBILE DEVICES*************** */
  374.  
  375. /* *** FLEXBOX ROW*** */
  376.  
  377. @media all and (max-width: 980px) {
  378. /*** wrap row in a flex box ***/
  379. .custom_row {
  380. display: -webkit-box;
  381. display: -moz-box;
  382. display: -ms-flexbox;
  383. display: -webkit-flex;
  384. display: flex;
  385. -webkit-flex-wrap: wrap; /* Safari 6.1+ */
  386. flex-wrap: wrap;
  387. }
  388. }
  389.  
  390. /* ** CUSTOM CLASSES THAT WILL DESIGNATE THE ORDER OF COLUMNS IN THE FLEX BOX ROW ** */
  391. .first-on-mobile {
  392. -webkit-order: 1;
  393. order: 1;
  394. }
  395.  
  396. .second-on-mobile {
  397. -webkit-order: 2;
  398. order: 2;
  399. }
  400.  
  401. .third-on-mobile {
  402. -webkit-order: 3;
  403. order: 3;
  404. }
  405.  
  406. .fourth-on-mobile {
  407. -webkit-order: 4;
  408. order: 4;
  409. }
  410.  
  411. .fifth-on-mobile {
  412. -webkit-order: 5;
  413. order: 5;
  414. }
  415.  
  416. .sixth-on-mobile {
  417. -webkit-order: 6;
  418. order: 6;
  419. }
  420.  
  421. /* ** add margin to last column ** */
  422. .custom_row:last-child .et_pb_column:last-child {
  423. margin-bottom: 30px;
  424. }
  425. }
  426.  
  427. /* ** Fix Divi Save error message that intermittently appears when clicking Save ** */
  428. <IfModule mod_substitute.c>
  429. SubstituteMaxLineLength 20M
  430. </IfModule>
  431.  
  432.  
  433. ********************** ROW-COLUMN INSTRUCTIONS BEGIN***********************************
  434.  
  435.  
  436. 1) In Divi, in Row Settings > Advanced, CSS Class, add:
  437. custom_row
  438.  
  439. 2) In a row that has text in the first column and a pic in the second column:
  440.  
  441. In Columns 1 CSS Class, add:
  442. second-on-mobile
  443.  
  444. In Column 2 CSS Class, add
  445. first-on-mobile
  446.  
  447. In a row that has a pic in the first column and text in the second column:
  448.  
  449. In Row Settings > Advanced
  450.  
  451. In Columns 1 CSS Class, add:
  452. first-on-mobile
  453.  
  454. In Column 2 CSS Class, add
  455. second-on-mobile
  456.  
  457. ************************INSTRUCTIONS END**********************************
  458.  
  459. /* ** DIVI ADD OVERLAY TO PARRALAX SECTION ** */
  460. In the section, add the following to Advanced > CSS Class
  461. free-background-overlay
  462.  
  463. Add to css:
  464. .free-background-overlay:before, .free-background-overlay-light:before {
  465. position: absolute;
  466. content: " ";
  467. top: 0;
  468. left: 0;
  469. width: 100%;
  470. height: 100%;
  471. display: block;
  472. z-index: 0;
  473. }
  474.  
  475. .et_pb_section_parallax:before {
  476. z-index: 1!important;
  477. }
  478.  
  479.  
  480. ///*** DIVI CLOSE DROPDOWN MOBILE MENU, PASTE IN DIVI THEME OPTIONS, INTEGRATION, <head> ***///
  481. <script>
  482. jQuery(function($){
  483. $('.et_pb_accordion .et_pb_toggle_open').addClass('et_pb_toggle_close').removeClass('et_pb_toggle_open');
  484.  
  485. $('.et_pb_accordion .et_pb_toggle').click(function() {
  486. $this = $(this);
  487. setTimeout(function(){
  488. $this.closest('.et_pb_accordion').removeClass('et_pb_accordion_toggling');
  489. },700);
  490. });
  491. });
  492. </script>
  493.  
  494.  
  495. ///*************** DYNAMIC YEAR IN FOOTER PASTE IN DIVI THEME OPTIONS, INTEGRATION, <head> *****************///
  496.  
  497. <script>
  498. var beg_year = 2018; // Year site went live
  499. var this_year = new Date(); // Get current date
  500. var developed_by = ' | All Rights Reserved, <a href="https://www.mountainpeacecabinkeepers.com" target="_blank">Mountain Peace Cabin Keepers</a> | <a href="https://www.mountainpeacecabinkeepers.com/privacy-policy">Privacy Policy</a> | <a href="https://www.mountainpeacecabinkeepers.com/terms-of-use">Terms of Use</a> | <a href="https://www.mountainpeacecabinkeepers.com/dmca-policy">DMCA</a>'; // Business Name
  501. this_year = this_year.getFullYear();
  502. if(this_year > beg_year) {
  503. var year = beg_year + ' - ' + this_year;
  504. } else {
  505. var year = this_year;
  506. }
  507. var domain = window.location.hostname;
  508. jQuery(function($){
  509. $('#footer-info').html('&copy; ' + year + developed_by );
  510. });
  511. </script>
  512.  
  513. ///*************** SCHEMA MICRODATA *****************///
  514.  
  515. <div style="display:none;" itemscope itemtype="http://schema.org/LocalBusiness">
  516. <div itemprop="name">GBP Services, Inc.</div>
  517. <div>Url: <span itemprop="url"><a href='https://www.mc-junk.com/'>https://www.gbpservicesinc.com/</a></span></div>
  518. <div itemtype="http://schema.org/PostalAddress" itemscope="" itemprop="address">
  519. <div itemprop="streetAddress">7283 NC Hwy 42, Ste# 102-261</div>
  520. <div><span itemprop="addressLocality">Raleigh</span>, <span itemprop="addressRegion">NC</span> <span itemprop="postalCode">27603</span></div>
  521. </div>
  522. <div>Phone: <span itemprop="telephone">(919) 995-5161</span></div>
  523. <div>Email: <span itemprop="email"><a href='mailto:[email protected]'>[email protected]'</a></span></div>
  524. <div><link itemprop="logo" href='https://www.gbpservicesinc.com/wp-content/uploads/2018/11/gbp-services-logo.jpg'></div>
  525. <div style="display:none;" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
  526. <img src="https://www.gbpservicesinc.com/wp-content/uploads/2018/11/gbp-services-logo.jpg" alt="GBP Services Logo" width="417" height="150" itemprop="url"></div><br />
  527. <div><link itemprop="sameAs" href="https://www.facebook.com/GBPConsulting/">
  528. <link itemprop="sameAs" href="https://www.bbb.org/us/nc/raleigh/profile/investigator/gbp-consulting-investigative-security-services-inc-0593-90207554#bbbseal">
  529. <link itemprop="sameAs" href="https://www.yelp.com/biz/gbp-consulting-and-investigative-services-raleigh">
  530.  
  531. <div itemtype="http://schema.org/GeoCoordinates" itemscope="" itemprop="geo">
  532. <meta itemprop="latitude" content="35.59179" />
  533. <meta itemprop="longitude" content="-78.601745" />
  534. </div>
  535. <div itemprop="paymentAccepted" style='display: none' >cash, check, credit card</div>
  536. <div style='display: none' itemprop="priceRange" content="$$$">$$$</div></div>
  537. <meta itemprop="openingHours" style='display: none' datetime="Mo,Tu,We,Th,Fr 08:30-17:00" />
  538. </div>
  539.  
  540.  
  541.  
  542. ///*** DIVI BLURB HOVER EFFECT ***///
  543. .blurb:hover {
  544. background-color: #ffffff;
  545. box-shadow: 0px 1px 18px rgba(23, 23, 23, 0.17);
  546. -moz-box-shadow: 0px 1px 18px rgba(23, 23, 23, 0.17);
  547. -webkit-box-shadow: 0px 1px 18px rgba(23, 23, 23, 0.21);
  548. }
  549.  
  550. In Row Settings, Advanced, CSS Class, enter:
  551. blurb
  552.  
  553.  
  554. ///*** DIVI ALIGN BUTTONS TO BOTTOM ***///
  555.  
  556. /* buttons fixed to the bottom */
  557. .bbm_r_fixed_buttons .et_pb_column {
  558. padding-bottom:30px;
  559. }
  560.  
  561. .bbm_r_fixed_buttons .et_pb_button_module_wrapper {
  562. position: absolute;
  563. bottom: 5%;
  564. left: 0;
  565. right: 0;
  566. margin: auto;
  567. }
  568. In Row Settings, Advanced, CSS Class, enter:
  569.  
  570. bbm_r_fixed_buttons
  571.  
  572. Enable “Equalize Column Height”
  573.  
  574. DIVI GLOBALLY REMOVE SIDEBAR (To REMOVE SIDEBAR FROM WOOCOMMERCE)
  575.  
  576. /* ********************************** */
  577. /* ** DIVI GLOBALLY REMOVE SIDEBAR ** */
  578. /* ********************************** */
  579.  
  580. /*** Take out the divider line between content and sidebar for Single WooCommerce Product Pages ***/
  581. .single-product #main-content .container:before {background: none;}
  582.  
  583. /*** Hide Sidebar for Single WooCommerce Product Pages ***/
  584. .single-product #sidebar, .single-product #sidebar-secondary {display:none;}
  585.  
  586. /*** Expand the content area to fullwidth for Single WooCommerce Product Pages ***/
  587. @media (min-width: 981px){
  588. .single-product #left-area, .single-product #primary {
  589. width: 100%;
  590. padding: 23px 0px 0px !important;
  591. float: none !important;
  592. }
  593. }
  594.  
  595. /* ****KEEP BLOG POSTS ON HOME PAGE THE SAME HEIGHT**** */
  596. @media only screen and (min-width: 768px) {
  597. .custom-blog .et_pb_post {
  598. min-height: 680px;
  599. max-height: 680px;
  600. }
  601. }
  602.  
  603. Then, in the Blog Module, add custom-blog to Advanced > CSS ID & Classes > CSS Class
  604.  
  605. DIVI WOOCOMMERCE BUTTON STYLING
  606.  
  607. /* ************************************* */
  608. /* ** DIVI WOOCOMMERCE BUTTON STYLING ** */
  609. /* ************************************* */
  610.  
  611. body .et_pb_button:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover {
  612. color: #E09900;
  613. }
  614. .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button{
  615. color: #E09900;
  616. }
  617.  
  618. /* **WOOCOMMERCE PRODUCT TITLES STYLING** */
  619. .woocommerce ul.products li.product .woocommerce-loop-product__title {
  620. font-size: 1.2em;
  621. color: #024142;
  622. font-weight: 600;
  623. }
  624.  
  625. /* ********************************************************** */
  626. /* DIVI WOOCOMMERCE STYLING */
  627. /* ********************************************************** */
  628.  
  629. /* **DIVI WOOCOMMERCE PRODUCT TITLES STYLING CATEGORY PAGE** */
  630. .woocommerce ul.products li.product .woocommerce-loop-product__title {
  631. font-size: 1.2em;
  632. color: #024142;
  633. font-weight: 600;
  634. }
  635.  
  636. /* **DIVI WOOCOMMERCE PRICE COLOR CATEGORY PAGE** */
  637. .woocommerce-page ul.products li.product .price {
  638. color: #000000!important;
  639. }
  640.  
  641. /* **DIVI WOOCOMMERCE PRICE SIZE CATEGORY PAGE** */
  642. span.woocommerce-Price-amount.amount {
  643. font-size: 16px!important;
  644. }
  645.  
  646. /* **DIVI WOOCOMMERCE SINGLE PAGE PRODUCT TITLE STYLING** */
  647. .woocommerce div.product .product_title {
  648. font-family: 'Josefin Sans',Helvetica,Arial,Lucida,sans-serif;
  649. }
  650.  
  651. /* **DIVI WOOCOMMERCE SINGLE PAGE PRODUCT PRICE STYLING** */
  652. .woocommerce div.product p.price, .woocommerce-page div.product p.price {
  653. color: #066C19;
  654. }
  655.  
  656. /* **DIVI WOOCOMMERCE SINGLE PAGE ADD TO CART BUTTON STYLING** */
  657. button.single_add_to_cart_button.button.alt {
  658. background-color: #014761;
  659. color: #ffffff;
  660. border: 2px solid #0085ba;
  661. }
  662.  
  663. /* **DIVI WOOCOMMERCE SINGLE PAGE ADD TO CART BUTTON DISABLED STYLING** */
  664. .woocommerce button.button.disabled {
  665. background-color: #014761!important;
  666. }
  667.  
  668. /* **DIVI WOOCOMMERCE SINGLE PAGE QTY BUTTON STYLING** */
  669. .woocommerce .quantity input.qty, .woocommerce-page .quantity input.qty {
  670. background-color: #014761!important;
  671. }
  672.  
  673. /* ********************************************************** */
  674. /* ** DIVIDERS BETWEEN MENU ITEMS ** */
  675. /* ********************************************************** */
  676.  
  677. #top-menu .menu-item:before{
  678. content: '|';
  679. position: absolute;
  680. right: 7px; /* this can be adjusted as needed, depending on number of items */
  681. }
  682.  
  683. #top-menu .menu-item:last-child:before{
  684. content:'';
  685. }
  686.  
  687. #top-menu .menu-item-has-children .sub-menu .menu-item:before{
  688. content:'';
  689. }
  690.  
  691.  
  692. ///*************** MAKE FIRST ITEM IN A MEGA MENU DROPDOWN MENU UNCLICKABLE *****************///
  693. #top-menu li.mega-menu>ul>li>a:first-child {
  694. color: #BA0100 !important;
  695. text-decoration: underline;
  696. padding-top: 20px!important;
  697. padding-bottom: 0!important;
  698. cursor: default;
  699. pointer-events: none;
  700. }
  701.  
  702. ///*************** FOOTER STYLING *************************///
  703. <img class="alignleft size-full wp-image-204541" src="https://barkingbirdmedia.com/wp-content/uploads/2018/06/map-pin3-white-24.png" alt="" width="24" height="24"><span style="font-size: 14pt; margin-left: 4px;">Insurance of NC</span>
  704. <div style="margin-left: 43px; margin-top: -20px;">123 Any Street</div>
  705. <div style="margin-left: 43px;">Raleigh, NC 99999</div>
  706. <div style="margin-top: 10px;"></div>
  707. <img class="alignleft size-full wp-image-204547" src="https://barkingbirdmedia.com/wp-content/uploads/2018/06/phone-white-24.png" alt="" width="24" height="24"><span style="font-size: 14pt; margin-left: 5px;">Call Us</span>
  708. <div style="margin-left: 45px; margin-top: -20px;"><a style="color: #ffffff;" href="tel:+18554191960">1-855-419-1960</a></div>
  709. <div style="margin-top: 10px;"></div>
  710. <img class="alignleft size-full wp-image-204545" src="https://barkingbirdmedia.com/wp-content/uploads/2018/06/envelope-closed-white-24.png" alt="" width="24" height="24"><span style="font-size: 14pt; margin-left: 5px;">Email Us</span>
  711. <div style="margin-left: 43px;"><a style="color: #ffffff;" href="mailto:[email protected] ">[email protected] </a></div>
  712.  
  713. /* ************************************************************** */
  714. /* ** DIVI FLOAT SOCIAL MEDIA ICONS TO RIGHT SECONDARY NAV BAR ** */
  715. /* ************************************************************** */
  716.  
  717. #top-header .et-social-icons { float:right !important; }
  718. #top-header #et-info { width: 100%; }
  719.  
  720.  
  721. ///*** ***///
Advertisement
Add Comment
Please, Sign In to add comment