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
//* For testing purpose, I added this script to a GP hook (wp_head) and had it run for only the test page named "Stickytest" | |
<?php if ( is_page( 'stickytest' ) ) : ?> | |
<script> | |
jQuery(document).ready(function($) { | |
$(window).resize(function(){ | |
var footerHeight = $('.site-info').outerHeight(); | |
var stickFooterPush = $('.push').height(footerHeight); |
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
// For testing purpose, I added this script to a GP hook (wp_head) and had it run for only the test page named "Stickytest". To be valid for the whole site, you might want to enqueue the script. | |
<?php if ( is_page( 'stickytest' ) ) : ?> | |
<script> | |
jQuery(document).ready(function($) { | |
$(window).resize(function(){ | |
var footerHeight = $('.site-info').outerHeight(); | |
var stickFooterPush = $('.push').height(footerHeight); |
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
// =========== Filter the site title with a custom function ============================ | |
add_filter('genesis_seo_title', 'siga_site_title' ); | |
// Add additional custom style to site header | |
function siga_site_title( $title ) { | |
// Change $custom_title text as you wish | |
$custom_title = 'SG-Layout'; | |
// Don't change the rest of this on down |
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_action('after_setup_theme','generate_hide_generatepress'); | |
function generate_hide_generatepress() | |
{ | |
if (current_user_can('activate_plugins') == false) { | |
remove_action('admin_menu', 'generate_create_menu'); | |
} | |
} |
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
*.anchor:before { | |
display: block; | |
content: " "; | |
margin-top: -75px; // Set the Appropriate Height | |
height: 75px; // Set the Appropriate Height | |
visibility: hidden; | |
} | |
/* or */ |
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 (max-width: 768px) { | |
.fl-col { | |
max-width: 500px; /* choose whatever max-width you want */ | |
} | |
} |
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
/* ======== A bit of table styling =========== */ | |
table { | |
width:100%; | |
font-family: Arial, sans-serif; | |
font-size: 16px; | |
} | |
td,th { | |
border:1px solid #ddd; |
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
<!-- Example 1, schneidet im Google validator am Besten ab --> | |
<p itemscope itemtype="http://schema.org/LocalBusiness"> | |
<strong itemprop="name">ACME</strong><br /> | |
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span itemprop="streetAddress">Hollywood Boulevard</span><br /> | |
<span itemprop="postalCode">12345</span> <span itemprop="addressLocality">Sin City</span><br /></span> | |
Tel.: <span itemprop="telephone" content="+15552345567">555-2345567</span><br /> | |
<a itemprop="email" content="[email protected]" href="/cdn-cgi/l/email-protection#aac3c4ccc5eacfd2cbc7dac6cf84c9c5c795d9dfc8c0cfc9de97ecffffffff">[email protected]</a><meta itemprop="url" content="http://www.example.com/" /> | |
</p> | |
<!-- Example 2 --> | |
<div itemscope itemtype ="http://schema.org/Movie"> |
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 Bootstrap container class to header | |
function my_site_bootstrap_header( $attributes ) { | |
$attributes['class'] = $attributes['class']. ' container-fluid'; | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_site-header', 'my_site_bootstrap_header' ); | |
//* Add Bootstrap container wrap around page content | |
function my_site_start_page_container(){ echo '<div id="page-container" class="container-fluid"><div class="row">'; }; |
NewerOlder