This file contains hidden or 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 | |
/** | |
* The template for displaying Search Results pages | |
* | |
* @package WordPress | |
* @subpackage Twenty_Twelve | |
* @since Twenty Twelve 1.0 | |
*/ | |
get_header(); |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 get_header(); ?> | |
<?php | |
$number_of_feature_posts = 1; | |
$number_of_secondary_posts = 8; | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$how_many_secondary_posts_past = ($number_of_secondary_posts * ($paged - 1)); | |
$off = $number_of_feature_posts + (($paged > 1) ? $how_many_secondary_posts_past : 0); | |
?> |
This file contains hidden or 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 | |
/** | |
* The template for displaying Search Results pages. | |
* | |
* @since alterna 1.0 | |
*/ | |
get_header(); ?> | |
<?php |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
if(location.hash){ | |
if($(location.hash)){ | |
setTimeout(function(){ | |
var targetTop = $('#content').offset().top; | |
targetTop -= $('#header').height() + $('#nav').height() - 23; | |
$('body,html').scrollTop(targetTop); |
NewerOlder