Skip to content

Instantly share code, notes, and snippets.

View justadityaraj's full-sized avatar
🎯
Focusing

Aditya Raj Singh justadityaraj

🎯
Focusing
View GitHub Profile
@justadityaraj
justadityaraj / genesis-add-featured-image.php
Last active June 26, 2019 14:34
Add Featured Image at top of Single Post/Page in Genesis framework
@justadityaraj
justadityaraj / genesis-featured-image-action.php
Created June 26, 2019 06:00
Adding the code snippet in your functions.php file of the child theme will automatically have the featured image appear on single posts.
@justadityaraj
justadityaraj / genesis-custom-footer.php
Last active June 26, 2019 14:29
Go to Cpanel > File manager > Root folder of website (check hidden files) > wp-content > themes > genesis (framework) > functions.php > copy & paste.
<?php
//* REMOVE THE <?php ABOVE BEFORE PASTING INTO functions.php
//* Customize Entry Meta Filed Under and Tagged Under
add_filter( 'genesis_post_meta', 'ig_entry_meta_footer' );
function ig_entry_meta_footer( $post_meta ) {
$post_meta = '[post_categories before="Category: "] [post_tags before="Tags: "]';
return $post_meta;
}
.entry-content .search-form-submit {
font-family: Muli;
font-size: 13px
}
.ab-block-post-grid .ab-block-post-grid-more-link {
color: white;
border-radius: 10px;
background: #0095D0;
padding: 5px;
}
.sidebar .enews-widget input#subbutton:hover {
background-color: rgba(235, 83, 82);
}
<?php
//table of nine <9> with explanation
$table=9; //starting int value
$num=1; //num
while ($table<=90){ //until num
echo "9 × ".$num." is equal to ".$table."." . "\n"; //output format
$table+=9; //value to be addded in each interval
$num++; //num value add for chronological order
}
@justadityaraj
justadityaraj / featured-after-title.php
Last active August 22, 2019 20:58
Genesis Framework: Display featured image after the title