Skip to content

Instantly share code, notes, and snippets.

<?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
*/
<?php
function my_navbar() { ?>
<header id="banner-header" class="banner <?php echo apply_filters( 'shoestrap_navbar_class', 'navbar navbar-default' ); ?>" role="banner">
<div class="<?php echo apply_filters( 'shoestrap_navbar_container_class', 'container' ); ?>">
<div class="navbar-header">
<?php echo apply_filters( 'shoestrap_nav_toggler', '
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main, .nav-extras">
<span class="sr-only">' . __( 'Toggle navigation', 'shoestrap' ) . '</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>

BASIC SETUP

Install ee:

curl -sL rt.cx/ee | sudo bash
ee system install

CHANGE CONFIGURATION

@fovoc
fovoc / functions.php
Created July 28, 2014 09:19
Shoestrap 3 - My Custom Comments Template
function my_custom_comments_template() {
global $ss_framework, $post, $user_identity;
if (post_password_required()) {
return;
}
if (have_comments()) : ?>
<section id="comments">
@fovoc
fovoc / functions.php
Created July 28, 2014 09:50
Shoestrap 3 - My custom content override
<?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 );
@fovoc
fovoc / functions.php
Created July 30, 2014 14:46
Shoestrap 3.2.6 - Remove default navbar_brand filter // Add new function in its place
<?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' );
@fovoc
fovoc / functions.php
Last active August 29, 2015 14:04
Shoestrap 3 - remove page title from template & insert it before the main tag
<?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();