This file contains 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
/* --------------------------------------------------------------------- | |
Module: Callout | |
Requirement: You must have equal column heights. | |
------------------------------------------------------------------------ */ | |
.fl-module-callout { | |
display: flex; | |
height: 100%; | |
} |
This file contains 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
/* --------------------------------------------------------------------- | |
Module: Call to Action | |
Requirement: You must have equal column heights. | |
Requirement: Button layout must be stacked. | |
------------------------------------------------------------------------ */ | |
.fl-module-cta { | |
display: flex; | |
height: 100%; | |
} |
This file contains 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
/* append this to the bottom of the common.css file */ | |
/* via https://forum.vivaldi.net/topic/6289/tab-loading-indicator/24?page=2 */ | |
@keyframes fade{ | |
from {opacity:1} | |
to {opacity:0.4} | |
} | |
/* Either pulse the "X"... */ | |
.button-toolbar.reload.loading svg{ | |
animation-name: fade; | |
animation-duration: 400ms; |
This file contains 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 Beaver Builder logo to login screen. | |
* | |
* @action login_enqueue_scripts | |
*/ | |
function nerd_login_logo() { | |
$logo_image = get_theme_mod( 'fl-logo-image-retina' ); |
This file contains 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 | |
/* I'm not so certain this works right anymore, but some may find it useful. See https://www.twistermc.com/36600/wordpress-mega-menu/ for full details. */ | |
class description_walker extends Walker_Nav_Menu { | |
protected $topLevelId = NULL; | |
protected $topLevelCount = NULL; | |
protected $templateURL = NULL; | |
function description_walker() { | |
$this->templateURL = get_theme_root() . '/' . get_template() . '/'; |
This file contains 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 | |
/** | |
* Allow the Contributor role to upload files. | |
*/ | |
function add_theme_caps() { | |
$role = get_role( 'contributor' ); | |
$role->add_cap( 'upload_files' ); | |
} | |
add_action( 'admin_init', 'add_theme_caps'); |
This file contains 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 Search Box to Mobile | |
* Adds a search box to mobile, below the header. | |
* To move it above the header, change fl_after_header to fl_before_header | |
*/ | |
function bbMenuPolish_addMobileSearch(){ | |
if ( wp_is_mobile() ) { | |
get_search_form(); | |
} |
This file contains 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
/* add the drop down indicator to parent */ | |
.fl-page-header .menu-item-has-children a:after {content: " ▾"; } | |
/* remove drop down indicator from children */ | |
.fl-page-header .sub-menu a:after {content: ""; } |
This file contains 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
// Adapted from http://stackoverflow.com/questions/30293784/smooth-scroll-to-anchor-after-loading-new-page | |
NERD.ScrollToHashFix = { | |
init: function () { | |
// to top right away | |
if ( window.location.hash ) scroll(0,0); // void some browsers issue | |
setTimeout( function() { scroll(0,0); }, 1); | |
$(function() { | |
// *only* if we have anchor on the url and if it exists on the page. |
NewerOlder