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
<!-- Create or edit "searchform.php" in theme folder | |
Replace what is there with the google cse script - example below | |
**Note: You will need to edit the final line outside the script with the custom parameters: resultsUrl & queryParameterName | |
--> | |
<script> | |
(function() { |
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 Span tags in editor*/ | |
function myextensionTinyMCE($init) { | |
// Command separated string of extended elements | |
$ext = 'span[id|name|class|style]'; | |
// Add to extended_valid_elements if it alreay exists | |
if ( isset( $init['extended_valid_elements'] ) ) { | |
$init['extended_valid_elements'] .= ',' . $ext; | |
} else { |
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
h2:before { | |
display: block; | |
content: " "; | |
margin-top: -70px; /*adjust based on fixed header size*/ | |
height: 70px; /*adjust based on fixed header size*/ | |
visibility: hidden; | |
} |
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 | |
// Custom excerpt lengths | |
function get_excerpt($count){ | |
$permalink = get_permalink($post->ID); | |
$words = array(); | |
$excerpt = get_the_content(); | |
$excerpt = strip_tags($excerpt, '<a>'); //allow links within excerpt | |
$excerpt = strip_shortcodes( $excerpt ); | |
$excerpt = substr($excerpt, 0, $count); | |
$excerpt = $excerpt; |