View author.php
<?php
/**
* @author Brad Dalton
* @link https://wp.me/p1lTu0-h7v
*/
// Add your custom code here https://my.studiopress.com/documentation/snippets/
View author-1.php
<?php
/**
* @author Brad Dalton
* @link https://wp.me/p1lTu0-h7v
*/
// Add your custom code here https://my.studiopress.com/documentation/snippets/
genesis();
View custom_blog.php
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_header', 'genesis_do_post_title', 15 );
View functions.php
add_filter( 'genesis_before_footer', 'before_footer_image' );
function before_footer_image() {
printf( '<img class="before-footer-image" src="%s" alt="%s" />', get_stylesheet_directory_uri() .'/images/before-footer.jpg', get_the_title( $post->ID ) );
}
View f.a.q.html
<div class="one-half first">
<button class="accordion">Section 1</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div></div>
<div class="one-half">
<button class="accordion">Section 2</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
View accordion.html
<button class="accordion">Section 1</button>
<div class="panel">
This is an example of a accordion in a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.
</div>
<button class="accordion">Section 2</button>
<div class="panel">
This is an example of a accordion in a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.
</div>
View functions.php
add_filter( 'gettext_with_context', 'rename_post_formats', 10, 4 );
function rename_post_formats( $translation, $text, $context, $domain ) {
$names = array(
'Audio' => 'Custom Name',
'Chat' => 'Custom Name',
'Aside' => 'Custom Name',
);
View functions.php
add_action( 'init', 'multiple_custom_taxonomies' );
function multiple_custom_taxonomies() {
register_taxonomy( 'Planes', 'post',
array(
'label' => __( 'Planes' ),
) );
View front-page-1.html
<section class="widget widget_text"><div class="widget-wrap"><h3 class="widgettitle widget-title">We crush minimal design.</h3><div class="textwidget"><p><span class="lead">Monochrome</span> is a creative agency based in Chicago. We developed the Genesis Framework and build mobile-optimized themes for WordPress.</p></div></div></section>
View featured-post-widget.php
$query_args = apply_filters( 'featured_posts_args', array(
'post_type' => 'post',
'cat' => $instance['posts_cat'],
'showposts' => $instance['posts_num'],
'offset' => $instance['posts_offset'],
'orderby' => $instance['orderby'],
'order' => $instance['order'],
'ignore_sticky_posts' => $instance['exclude_sticky'],
) );