This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'acf/init', 'nd_acf_add_local_field_groups' ); | |
| /** | |
| * Add Advanced Custom Fields programatically (Repeater field). | |
| * | |
| * @link https://www.advancedcustomfields.com/resources/register-fields-via-php/ | |
| * @link https://support.advancedcustomfields.com/forums/topic/register-two-locations-via-php-doesnt-work/ | |
| * @link https://support.advancedcustomfields.com/forums/topic/adding-additional-layout-to-flexible_content-field-in-child-theme/ | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'acf/init', 'nd_acf_add_local_field_groups' ); | |
| /** | |
| * Add Advanced Custom Fields programatically (Flexible Content field). | |
| * | |
| * @link https://www.advancedcustomfields.com/resources/register-fields-via-php/ | |
| * @link https://support.advancedcustomfields.com/forums/topic/register-two-locations-via-php-doesnt-work/ | |
| * @link https://support.advancedcustomfields.com/forums/topic/adding-additional-layout-to-flexible_content-field-in-child-theme/ | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .home-row4 .post:nth-child(odd) { | |
| margin-left: initial; | |
| } | |
| .home-row4 .post:nth-of-type(odd) { | |
| clear: left; | |
| } | |
| .home-row4 .post:nth-of-type(even) { | |
| margin-left: 18%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Get one value from an serialized array example | |
| * | |
| * @link http://stackoverflow.com/questions/8192789/getting-one-value-out-of-a-serialized-array-in-php#8192803 | |
| * | |
| * @author Nick Davis | |
| * | |
| * @return array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .testimonials span[itemprop="name"]::after { | |
| content: ","; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https?://mydomain.com.com/wp-(content|includes)# => https://mydomain.com/wp-$1 | |
| #https?://mydomain.com.com/blog/# => https://mydomain.com/wp-$1 | |
| #http://installname-wpengine\.netdna-ssl\.com# => https://installname-wpengine.netdna-ssl.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Find the following section in your theme's style.css file (should be around line 2353) and add the line below */ | |
| .home-top .widget, | |
| html > body div.slide-excerpt-border { | |
| background-color: #fff; | |
| bottom: 50px; | |
| font-size: 36px; | |
| position: absolute; | |
| right: 0; /* Add this line */ | |
| width: 40%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'widgets_init', 'wpe_remove_encourage_tls', 0 ); | |
| function wpe_remove_encourage_tls() { | |
| remove_action( 'init', 'wpesec_encourage_tls' ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;(function($, window, document, undefined){ | |
| 'use strict'; | |
| var init = function() { | |
| } | |
| /** | |
| * Strictly not necessary because you're already loading this script in the | |
| * footer, but sometimes there will be other scripts that didn't fire yet |