<?php
// Import Storefront Styles
function theme_enqueue_styles() {
$parent_style = ‘storefront’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style )
);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
// Remove WooThemes Credit from Footer
add_action( ‘init’, ‘custom_remove_footer_credit’, 10 );
function custom_remove_footer_credit () {
remove_action( ‘storefront_footer’, ‘storefront_credit’, 20 );
add_action( ‘storefront_footer’, ‘custom_storefront_credit’, 20 );
}
function custom_storefront_credit() {
?>
<div class=”site-info”>
© <?php echo get_bloginfo( ‘name’ ) . ‘ ‘ . get_the_date( ‘Y’ ); ?>
</div><!– .site-info –>
<?php
}
// add custom logo to website
add_action( ‘init’, ‘storefront_custom_logo’ );
function storefront_custom_logo() {
remove_action( ‘storefront_header’, ‘storefront_site_branding’, 20 );
add_action( ‘storefront_header’, ‘storefront_display_custom_logo’, 20 );
}
function storefront_display_custom_logo() {
?>
” class=”site-logo-link” rel=”home”>
<img class=”logocent” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png” alt=”<?php echo get_bloginfo( ‘name’ ); ?>” />
<?php
}
// Remove search bar from the header.
add_action( ‘init’, ‘jk_remove_storefront_header_search’ );
function jk_remove_storefront_header_search() {
remove_action( ‘storefront_header’, ‘storefront_product_search’, 40 );
}
// Rename the menu in mobile view
function storefront_primary_navigation() {
?>
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
<button class=”menu-toggle”><?php _e( ‘Branded Fashion’, ‘storefront’ ); ?></button>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav><!– #site-navigation –>
<?php
}
// Remove the shipping cart from the main menu
add_action( ‘init’, ‘woa_remove_header_cart’ );
function woa_remove_header_cart() {
remove_action( ‘storefront_header’, ‘storefront_header_cart’, 60 );
}
// Allow shortcodes in Widgets
add_filter(‘widget_text’, ‘do_shortcode’);
// Create the function button
function sButton($atts, $content = null) {
extract(shortcode_atts(array(‘link’ => ‘#’), $atts));
return ‘<span>’ . do_shortcode($content) . ‘</span>‘;
}
add_shortcode(‘button’, ‘sButton’);
// End of file
?>
I hope that might help a little.