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
//***Adding Custom Default Avatar In Wordpress**/ | |
add_filter( 'avatar_defaults', 'blogvkp_custom_gravatar' ); | |
function blogvkp_custom_gravatar ($avatar_defaults) { | |
$myavatar = get_stylesheet_directory_uri() . '/images/custom-gravatar.jpg'; | |
$avatar_defaults[$myavatar] = "Custom Gravatar"; | |
return $avatar_defaults; | |
} |
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 Custom Default Avatar In Wordpress To Other Common Themes**/ | |
add_filter( 'avatar_defaults', 'blogvkp_custom_gravatar' ); | |
function blogvkp_custom_gravatar ($avatar_defaults) { | |
$myavatar = get_bloginfo('template_directory') . '/images/custom-gravatar.jpg'; | |
$avatar_defaults[$myavatar] = "Custom Gravatar"; | |
return $avatar_defaults; | |
} |
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 to customize the Read More link*/ | |
function custom_read_more_link() { | |
return '<a href="' .get_permalink() .'>Continue reading..</a>';// Change Continue reading with you own 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
//* Modify Post Info In Genesis | |
add_filter( 'genesis_post_info', 'post_info_filter' ); | |
function post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link]'; | |
return $post_info; | |
} |
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] |
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
<?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
<?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
*, *: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
<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> |
OlderNewer