WordPress Snippet
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
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js"></script> | |
<script> | |
WebFont.load({ | |
google: { | |
families: ['Source+Serif+Pro:400,600,700'] | |
} | |
}); | |
</script> |
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 | |
/** | |
* This will log all errors notices and warnings to a file called debug.log in | |
* wp-content (If Apache does not have write permission, you may need to create | |
* the file first and set the appropriate permissions (i.e. use 660) ) | |
*/ | |
define( 'WP_DEBUG', false ); // Or false | |
if ( WP_DEBUG ) { | |
define( 'WP_DEBUG_LOG', true ); |
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
.lightbox-video { | |
margin: auto; | |
padding: 5% 10%; | |
} | |
.lightbox-video a { | |
display: block; | |
position: relative; | |
overflow: hidden; | |
cursor: pointer; |
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
<!-- | |
Remove the FB like box script from your header and modify the following for your use. | |
Then place it in your html (like a widget area) where you want it to appear. | |
--> | |
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 | |
use Carbon_Fields\Container; | |
use Carbon_Fields\Field; | |
use Carbon_Fields\Field\Complex_Field; | |
Container::make( 'post_meta', 'Page Builder' )//PAGE BUILDER FIELDS | |
->show_on_post_type('page') | |
->add_fields( array( | |
Field::make( 'complex', 'crb_layouts' ) | |
->set_layout('tabbed-vertical') |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
/* | |
* You can find the refrance for supports that Genesis adds | |
* in the core files lib > admin > inpost-metaboxes.php | |
*/ | |
//* Remove Action |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//********************************************** | |
// Setup CTA Button Widget | |
//********************************************** | |
/* | |
* We have three attributes: | |
* - Button Text |
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 | |
// don't use above. Put this in your functions.php file. | |
/** ====================================================================================== | |
* | |
* Paginate Comments | |
* | |
======================================================================================= */ | |
function yourprefix_paginate_comments() { |
NewerOlder