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 | |
/* Please don't copy the opening <?php tag */ | |
function blogprime_homepage_dns_prefetch() { | |
/* variable for storing the homepage url */ | |
$homepage = get_home_url(); | |
/* variable for storing the next post url */ | |
$next_post = get_next_post(); | |
/* variable for storing the previous post url */ | |
$prev_post = get_previous_post(); |
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( 'genesis_before_header', 'wpvkp_bhw', 9 ); | |
function wpvkp_bhw() { | |
genesis_widget_area( 'before-header', array( | |
'before' = '<div class="bh widget-area">', | |
'after' ='</div>', | |
) ); | |
} |
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
/** Customize Genesis Footer */ | |
/** This snippet will help to modify the complete genesis footer area */ | |
/** For Non HTML5 Websites */ | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'wpvkp_footer' ); | |
function wpvkp_footer() { | |
?> | |
<p>© Copyright 2014 <a href="http://mysite.com">MySite</a> · All Rights Reserved · And Our <a href="http://mysite.com/sitemap.xml" target="_blank">Sitemap</a> · All Logos & Trademark Belongs To Their Respective Owners· </p> | |
<?php |
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
/* | |
** http://wpvkp.com/add-social-media-sharing-buttons-to-wordpress-without-plugin/ | |
** @blogvkp | |
** http://wpvkp.com/ | |
*/ | |
// Function to handle the thumbnail request for pinterest | |
function gpt_src($img) |
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
<form action="takeaction.php" method="post"> | |
<h1>Sifalri 2015</h1> | |
<fieldset> | |
<legend><span class="number">1</span>Enter Your Details</legend> | |
<label for="name">Name:</label> | |
<input type="text" id="name" name="user_name"> | |
<label for="universityname">University/Collage:</label> |
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
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: 'Nunito', sans-serif; | |
color: #384047; | |
background-image: url('pattern.png'); | |
background-position: 0px 0px; |
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 | |
function cust_post() { | |
$check = new WP_Query( array( 'category_name' => 'nameit', 'posts_per_page' => 5 ) ); | |
if ( $check->have_posts() ) { | |
// To enable the theme's default style for list elements | |
$string .= '<ul class="cust_post widget_recent_entries">'; | |
// Checks if the post is present in the category | |
while ( $check->have_posts() ) { |
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 search form to secondary navigation in genesis. | |
add_filter( 'wp_nav_menu_items', 'g_search_right_nav', 10, 2 ); | |
function g_search_right_nav( $menu, stdClass $args ){ | |
if ( 'secondary' != $args->theme_location ) |
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
[post_date] and [post_edit] |
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
[post_date] by [post_author_posts_link] [post_comments] [post_edit] |
NewerOlder