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
/* Move the wp-admin bar to the bottom when in mobile view */ | |
@media(max-width:782px) { | |
#wpadminbar { | |
bottom: 0; | |
position: fixed; | |
top: initial; | |
} | |
body.logged-in.admin-bar { | |
margin-top: -46px; | |
} |
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
/* Move the wp-admin bar to the bottom */ | |
#wpadminbar { | |
bottom: 0; | |
position: fixed; | |
top: initial; | |
} | |
body.logged-in.admin-bar { | |
margin-top: -32px; | |
} | |
@media(max-width:782px) { |
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 | |
/* Shortcode to add parent title above main title if exists */ | |
add_shortcode( 'page_parent', 'output_page_parent' ); | |
function output_page_parent() { | |
global $post; | |
$post_parentID = $post->post_parent; | |
if($post_parentID) { | |
$output = '<h4><a href="'.get_permalink( $post_parentID ).'">'.get_the_title( $post_parentID ).' ></a></h4>'; | |
} | |
$output .= '<h1>'.get_the_title( $post ).'</h1>'; |
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
@media(min-width: 841px) { | |
.inside-header { | |
display: flex; | |
align-items: center; | |
} | |
.site-logo { | |
width: 20%; | |
} | |
.site-logo:not(.sticky-logo) img { | |
width: 140px; |
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
// From https://wpbeaches.com/anchor-link-offset-to-other-pages-with-fixed-header-size/ | |
jQuery(document).ready(function($) { | |
// set a variable for the anchor link which is the location.hash | |
var anchorLink = $(window.location.hash); | |
// test to see if the link is a anchor link, if not the length will have no value, this is done to avoid js errors on non anchor links | |
if ( anchorLink.length ) { | |
// set an element as the fixed entity, header in this case and get its height | |
var offsetSize = $("header").innerHeight(); |
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
/* # GENERATEPRESS HEADER # */ | |
/* GeneratePress header fix for phablets & small tablets | |
Change the 1024px value in two places to where you have nav/logo overlap */ | |
@media(min-width: 841px) { | |
.inside-header { | |
display: flex; | |
align-items: center; | |
} | |
.site-logo { | |
width: 20%; |
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
border-bottom: 1px solid #E7CA5B; | |
box-shadow: inset 0 -3px 0 #E7CA5B; |
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
function classToggle() { | |
this.classList.toggle('class1'); | |
this.classList.toggle('class2'); | |
} | |
document.querySelector('#div').addEventListener('click', classToggle); |
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
.fl-builder-module-template { | |
padding: 0; | |
} |
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
/* PAGE HEADER */ | |
/* Hide the page header when BB is active on a page */ | |
.hide-page-header .generate-page-header, | |
.hide-page-header .page-header-image, | |
.hide-page-header .page-header-image-single { | |
display:none; | |
} | |
/* Unhide the page header when BB is active but we want to use GP custom page header */ |