Install ee:
curl -sL rt.cx/ee | sudo bash
ee system install
<?php | |
/* | |
* Child Theme Options | |
* | |
* Uncomment the line below (the one with the add_filter function) | |
* to add the new section to the theme options panel. | |
* You can learn more about fields here: https://github.com/ReduxFramework/ReduxFramework/wiki/Fields | |
*/ |
function my_custom_comments_template() { | |
global $ss_framework, $post, $user_identity; | |
if (post_password_required()) { | |
return; | |
} | |
if (have_comments()) : ?> | |
<section id="comments"> |
<?php | |
function my_shoestrap_content_override() { | |
global $ss_framework; | |
echo '<article '; post_class(); echo '>'; | |
do_action( 'shoestrap_in_article_top' ); | |
shoestrap_title_section( true, 'h2', false ); |
<?php | |
// Remove default navbar_brand filter | |
// Add new function in its place | |
add_action( 'init', 'add_sitename' ); | |
function add_sitename(){ | |
global $ss_menus; |
<div class="row"> | |
<div class="col-md-2 col-md-offset-1"> | |
content 1</div> | |
<div class="col-md-2"> | |
content 2</div> | |
<div class="col-md-2"> | |
content 3</div> | |
<div class="col-md-2"> | |
content 4</div> | |
<div class="col-md-2"> |
<?php | |
echo apply_filters( 'shoestrap_title_section', '<header><title>' . shoestrap_title() . '</title><h1 class="entry-title">' . shoestrap_title() . '</h1></header>' ); | |
do_action( 'shoestrap_index_begin' ); | |
if ( ! have_posts() ) { | |
echo '<div class="alert alert-warning">' . __( 'Sorry, no results were found.', 'shoestrap' ) . '</div>'; | |
get_search_form(); | |
} |
<?php | |
global $ss_framework; | |
while ( have_posts() ) : the_post(); | |
echo '<article class="' . implode( ' ', get_post_class() ) . '">'; | |
do_action( 'shoestrap_single_top' ); | |
shoestrap_title_section(); | |
do_action( 'shoestrap_entry_meta' ); |
<?php | |
function my_custom_page_content() { | |
global $ss_framework; | |
while ( have_posts() ) : the_post(); | |
//shoestrap_title_section(); | |
do_action( 'shoestrap_entry_meta' ); | |
do_action( 'shoestrap_page_pre_content' ); | |
the_content(); |