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
| /* Columns | |
| * | |
| * Overwrites the default | |
| * enfold column gutter | |
| * spacing to add a gap of | |
| * 30px | |
| * | |
| * Author: Zeshan Ahmed | |
| * Author URL: http://www.zeshanahmed.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
| <?php | |
| /** | |
| * change 'product_cat' to your desired taxonomy. | |
| */ | |
| $categories = get_terms( array( | |
| 'taxonomy' => 'product_cat', | |
| 'hierarchical' => false, | |
| ) ); |
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
| /** | |
| * Redirect CF7 After Submission | |
| * | |
| * Accepts 'custom_on_sent_ok' parameter in CF7 form additional settings. e.g., | |
| * custom_on_sent_ok: http://example.com/thank-you | |
| */ | |
| add_action( 'wpcf7_mail_sent', 'custom_redirect_cf7_form' ); | |
| function custom_redirect_cf7_form( $wpcf7 ) { | |
| $on_sent_ok = $wpcf7->additional_setting('custom_on_sent_ok', false); |
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
| /** | |
| * datePicker Date Range | |
| * From: today | |
| * To: 1 month | |
| * | |
| * Update to 1 month when the DateFrom is changed too. | |
| * | |
| * Original Code from: https://jqueryui.com/datepicker/#date-range | |
| */ | |
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 | |
| /** | |
| * WP_Query 'meta_query' for "Date Start" and "Date End" custom fields. | |
| * Conditions are (relation = 'OR'): | |
| * 1. If "Date End" does not exist, compare "Date Start" only. | |
| * 2. If "Date End" exists, show events in between that and "Date Start". | |
| */ | |
| 'meta_query' => 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
| /** | |
| * Get Cursor Position in Input Field | |
| * @return integer Returns the cursor position. | |
| * | |
| * Source: Stackoverflow | |
| * Source URI: http://stackoverflow.com/a/2897510/3107931 | |
| * | |
| * Usage: $('input[type="text"]').getCursorPosition() | |
| */ | |
| $.fn.getCursorPosition = function() { |
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
| /** | |
| * Adding Full Absolute URLs to the Anchor Links in the Navbar that are not | |
| * on the same page. Works best with the parent menu and sub-menu | |
| * links in the navbar. And for WordPress navbar especially. | |
| * | |
| * Replace #parent_links_selector with the parent links selector | |
| */ | |
| jQuery(document).ready(function($) { | |
| $('#parent_links_selector').each(function(i, el) { |
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
| .element { | |
| position: relative; | |
| height: 22px; | |
| height: 2.2rem; | |
| width: 22px; | |
| width: 2.2rem; | |
| } | |
| .element:before, .element:after { | |
| content: ''; | |
| height: 1px; |
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
| /* Component: Languages */ | |
| .languages__item { | |
| text-transform: uppercase; | |
| color: #899099; | |
| font-size: 13px; | |
| font-size: 1.3rem; | |
| line-height: 1.15; | |
| } | |
| .languages__item--current { | |
| color: #212121; |
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 // Don't copy this line if you are inserting in a file that has it already. | |
| /** | |
| * ACF Options Page | |
| * | |
| * Instructions: | |
| * Add more languages to the array below: $languages | |
| * | |
| * @author: Zeshan Ahmed <https://zeshanahmed.com/> | |
| */ |