StoreFront theme how to remove Built with Storefront & WooCommerce | wordpress

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

StoreFront theme how to remove Built with Storefront & WooCommerce | wordpress. It is very annoying to see that text under your website and you go to footer.php and you do not find it there. These days most of wordpress themes hides that text a bit far so that you do not get it easily , so this helps them somehow.

In the video below we fixed the issue we took out that text and we did it in a step by step process , so after watching the video it is going to be easy for you to remove that text “Built with Storefront & WooCommerce”.

StoreFront theme how to remove Built with Storefront & WooCommerce | wordpress

Our channel link

Step one go to your ftp

Open public_html

Then open wp-content

Then open themes

Then Open StoreFront

Then open inc

You will see a file called storefront-template-functions.php

Open that file look fore the text “Built with Storefront & WooCommerce” then remove it but remember it might appear several times .

The entire file looks like this

< id=”comment-“> %s’, ‘storefront’ ), get_comment_author_link() ); ?> comment_approved ) : ?>

        <a href="<?php echo esc_url( htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ); ?>" class="comment-date">
            <?php echo '<time datetime="' . get_comment_date( 'c' ) . '">' . get_comment_date() . '</time>'; ?>
        </a>
    </div>
    <?php if ( 'div' !== $args['style'] ) : ?>
    <div id="div-comment-<?php comment_ID(); ?>" class="comment-content">
    <?php endif; ?>
    <div class="comment-text">
    <?php comment_text(); ?>
    </div>
    <div class="reply">
    <?php
    comment_reply_link(
        array_merge(
            $args, array(
                'add_below' => $add_below,
                'depth'     => $depth,
                'max_depth' => $args['max_depth'],
            )
        )
    );
    ?>
    <?php edit_comment_link( __( 'Edit', 'storefront' ), '  ', '' ); ?>
    </div>
    </div>
    <?php if ( 'div' !== $args['style'] ) : ?>
    </div>
    <?php endif; ?>
    <?php
}

}

if ( ! function_exists( ‘storefront_footer_widgets’ ) ) {
/**
* Display the footer widget regions.
*
* @since 1.0.0
* @return void
*/
function storefront_footer_widgets() {
$rows = intval( apply_filters( ‘storefront_footer_widget_rows’, 1 ) );
$regions = intval( apply_filters( ‘storefront_footer_widget_columns’, 4 ) );

    for ( $row = 1; $row <= $rows; $row++ ) :

        // Defines the number of active columns in this footer row.
        for ( $region = $regions; 0 < $region; $region-- ) {
            if ( is_active_sidebar( 'footer-' . esc_attr( $region + $regions * ( $row - 1 ) ) ) ) {
                $columns = $region;
                break;
            }
        }

        if ( isset( $columns ) ) :
            ?>
            <div class=<?php echo '"footer-widgets row-' . esc_attr( $row ) . ' col-' . esc_attr( $columns ) . ' fix"'; ?>>
            <?php
            for ( $column = 1; $column <= $columns; $column++ ) :
                $footer_n = $column + $regions * ( $row - 1 );

                if ( is_active_sidebar( 'footer-' . esc_attr( $footer_n ) ) ) :
                    ?>
                <div class="block footer-widget-<?php echo esc_attr( $column ); ?>">
                    <?php dynamic_sidebar( 'footer-' . esc_attr( $footer_n ) ); ?>
                </div>
                    <?php
                endif;
            endfor;
            ?>
        </div><!-- .footer-widgets.row-<?php echo esc_attr( $row ); ?> -->
            <?php
            unset( $columns );
        endif;
    endfor;
}

}

if ( ! function_exists( ‘storefront_credit’ ) ) {
/**
* Display the theme credit
*
* @since 1.0.0
* @return void
*/
function storefront_credit() {
$links_output = ”;

    if ( apply_filters( 'storefront_credit_link', true ) ) {
        if ( storefront_is_woocommerce_activated() ) {
            $links_output .= '<a href="" target="_blank" title="' . esc_attr__( 'WooCommerce - The Best eCommerce Platform for WordPress', 'storefront' ) . '" rel="noreferrer">' . esc_html__( '', '' ) . '</a>';
        } else {
            $links_output .= '<a href="https://woocommerce.com/storefront/" target="_blank" title="' . esc_attr__( 'Storefront -  The perfect platform for your next WooCommerce project.', 'storefront' ) . '" rel="noreferrer">' . esc_html__( 'Built with Storefront', 'storefront' ) . '</a>.';
        }
    }

    if ( apply_filters( 'storefront_privacy_policy_link', true ) && function_exists( 'the_privacy_policy_link' ) ) {
        $separator = '<span role="separator" aria-hidden="true"></span>';
        $links_output = get_the_privacy_policy_link( '', ( ! empty( $links_output ) ? $separator : '' ) ) . $links_output;
    }

    $links_output = apply_filters( 'storefront_credit_links_output', $links_output );
    ?>
    <div class="site-info">
        <?php echo esc_html( apply_filters( 'storefront_copyright_text', $content = '&copy; ' . get_bloginfo( 'name' ) . ' ' . date( 'Y' ) ) ); ?>

        <?php if ( ! empty( $links_output ) ) { ?>
            <br />
            <?php echo wp_kses_post( $links_output ); ?>
        <?php } ?>
    </div><!-- .site-info -->
    <?php
}

}

if ( ! function_exists( ‘storefront_header_widget_region’ ) ) {
/**
* Display header widget region
*
* @since 1.0.0
*/
function storefront_header_widget_region() {
if ( is_active_sidebar( ‘header-1’ ) ) {
?>


<?php
}
}
}

if ( ! function_exists( ‘storefront_site_branding’ ) ) {
/**
* Site branding wrapper and display
*
* @since 1.0.0
* @return void
*/
function storefront_site_branding() {
?>

<?php
}
}

if ( ! function_exists( ‘storefront_site_title_or_logo’ ) ) {
/**
* Display the site title or logo
*
* @since 2.1.0
* @param bool $echo Echo the string or return it.
* @return string
*/
function storefront_site_title_or_logo( $echo = true ) {
if ( function_exists( ‘the_custom_logo’ ) && has_custom_logo() ) {
$logo = get_custom_logo();
$html = is_home() ? ‘

‘ . $logo . ‘

‘ : $logo;
} else {
$tag = is_home() ? ‘h1’ : ‘div’;

        $html = '<' . esc_attr( $tag ) . ' class="beta site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_html( get_bloginfo( 'name' ) ) . '</a></' . esc_attr( $tag ) . '>';

        if ( '' !== get_bloginfo( 'description' ) ) {
            $html .= '<p class="site-description">' . esc_html( get_bloginfo( 'description', 'display' ) ) . '</p>';
        }
    }

    if ( ! $echo ) {
        return $html;
    }

    echo $html; // WPCS: XSS ok.
}

}

if ( ! function_exists( ‘storefront_primary_navigation’ ) ) {
/**
* Display Primary Navigation
*
* @since 1.0.0
* @return void
*/
function storefront_primary_navigation() {
?>

‘primary’,
‘container_class’ => ‘primary-navigation’,
)
);

        wp_nav_menu(
            array(
                'theme_location'  => 'handheld',
                'container_class' => 'handheld-navigation',
            )
        );
        ?>
    </nav><!-- #site-navigation -->
    <?php
}

}

if ( ! function_exists( ‘storefront_secondary_navigation’ ) ) {
/**
* Display Secondary Navigation
*
* @since 1.0.0
* @return void
*/
function storefront_secondary_navigation() {
if ( has_nav_menu( ‘secondary’ ) ) {
?>
‘secondary’, ‘fallback_cb’ => ”, ) ); ?>
<?php
}
}
}

if ( ! function_exists( ‘storefront_skip_links’ ) ) {
/**
* Skip links
*
* @since 1.4.1
* @return void
*/
function storefront_skip_links() {
?>


<?php
}
}

if ( ! function_exists( ‘storefront_homepage_header’ ) ) {
/**
* Display the page header without the featured image
*
* @since 1.0.0
*/
function storefront_homepage_header() {
edit_post_link( __( ‘Edit this section’, ‘storefront’ ), ”, ”, ”, ‘button storefront-hero__button-edit’ );
?>
‘, ” ); ?>
<?php
}
}

if ( ! function_exists( ‘storefront_page_header’ ) ) {
/**
* Display the page header
*
* @since 1.0.0
*/
function storefront_page_header() {
if ( is_front_page() && is_page_template( ‘template-fullwidth.php’ ) ) {
return;
}

    ?>
    <header class="entry-header">
        <?php
        storefront_post_thumbnail( 'full' );
        the_title( '<h1 class="entry-title">', '</h1>' );
        ?>
    </header><!-- .entry-header -->
    <?php
}

}

if ( ! function_exists( ‘storefront_page_content’ ) ) {
/**
* Display the post content
*
* @since 1.0.0
*/
function storefront_page_content() {
?>
” . __( ‘Pages:’, ‘storefront’ ), ‘after’ => ”,
)
);
?>

<?php
}
}

if ( ! function_exists( ‘storefront_post_header’ ) ) {
/**
* Display the post header with a link to the single post
*
* @since 1.0.0
*/
function storefront_post_header() {
?>

<?php

    /**
     * Functions hooked in to storefront_post_header_before action.
     *
     * @hooked storefront_post_meta - 10
     */
    do_action( 'storefront_post_header_before' );

    if ( is_single() ) {
        the_title( '<h1 class="entry-title">', '</h1>' );
    } else {
        the_title( sprintf( '<h2 class="alpha entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
    }

    do_action( 'storefront_post_header_after' );
    ?>
    </header><!-- .entry-header -->
    <?php
}

}

if ( ! function_exists( ‘storefront_post_content’ ) ) {
/**
* Display the post content with a link to the single post
*
* @since 1.0.0
*/
function storefront_post_content() {
?>

<?php

    /**
     * Functions hooked in to storefront_post_content_before action.
     *
     * @hooked storefront_post_thumbnail - 10
     */
    do_action( 'storefront_post_content_before' );

    the_content(
        sprintf(
            /* translators: %s: post title */
            __( 'Continue reading %s', 'storefront' ),
            '<span class="screen-reader-text">' . get_the_title() . '</span>'
        )
    );

    do_action( 'storefront_post_content_after' );

    wp_link_pages(
        array(
            'before' => '<div class="page-links">' . __( 'Pages:', 'storefront' ),
            'after'  => '</div>',
        )
    );
    ?>
    </div><!-- .entry-content -->
    <?php
}

}

if ( ! function_exists( ‘storefront_post_meta’ ) ) {
/**
* Display the post meta
*
* @since 1.0.0
*/
function storefront_post_meta() {
if ( ‘post’ !== get_post_type() ) {
return;
}

    // Posted on.
    $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';

    if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
        $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
    }

    $time_string = sprintf(
        $time_string,
        esc_attr( get_the_date( 'c' ) ),
        esc_html( get_the_date() ),
        esc_attr( get_the_modified_date( 'c' ) ),
        esc_html( get_the_modified_date() )
    );

    $output_time_string = sprintf( '<a href="%1$s" rel="bookmark">%2$s</a>', esc_url( get_permalink() ), $time_string );

    $posted_on = '
        <span class="posted-on">' .
        /* translators: %s: post date */
        sprintf( __( 'Posted on %s', 'storefront' ), $output_time_string ) .
        '</span>';

    // Author.
    $author = sprintf(
        '<span class="post-author">%1$s <a href="%2$s" class="url fn" rel="author">%3$s</a></span>',
        __( 'by', 'storefront' ),
        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
        esc_html( get_the_author() )
    );

    // Comments.
    $comments = '';

    if ( ! post_password_required() && ( comments_open() || 0 !== intval( get_comments_number() ) ) ) {
        $comments_number = get_comments_number_text( __( 'Leave a comment', 'storefront' ), __( '1 Comment', 'storefront' ), __( '% Comments', 'storefront' ) );

        $comments = sprintf(
            '<span class="post-comments">&mdash; <a href="%1$s">%2$s</a></span>',
            esc_url( get_comments_link() ),
            $comments_number
        );
    }

    echo wp_kses(
        sprintf( '%1$s %2$s %3$s', $posted_on, $author, $comments ), array(
            'span' => array(
                'class' => array(),
            ),
            'a'    => array(
                'href'  => array(),
                'title' => array(),
                'rel'   => array(),
            ),
            'time' => array(
                'datetime' => array(),
                'class'    => array(),
            ),
        )
    );
}

}

if ( ! function_exists( ‘storefront_edit_post_link’ ) ) {
/**
* Display the edit link
*
* @since 2.5.0
/ function storefront_edit_post_link() { edit_post_link( sprintf( wp_kses( / translators: %s: Name of current post. Only visible to screen readers */
__( ‘Edit %s’, ‘storefront’ ),
array(
‘span’ => array(
‘class’ => array(),
),
)
),
get_the_title()
),
”, ”
);
}
}

if ( ! function_exists( ‘storefront_post_taxonomy’ ) ) {
/**
* Display the post taxonomies
*
* @since 2.4.0
/ function storefront_post_taxonomy() { / translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ‘, ‘, ‘storefront’ ) );

    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list( '', __( ', ', 'storefront' ) );
    ?>

    <aside class="entry-taxonomy">
        <?php if ( $categories_list ) : ?>
        <div class="cat-links">
            <?php echo esc_html( _n( 'Category:', 'Categories:', count( get_the_category() ), 'storefront' ) ); ?> <?php echo wp_kses_post( $categories_list ); ?>
        </div>
        <?php endif; ?>

        <?php if ( $tags_list ) : ?>
        <div class="tags-links">
            <?php echo esc_html( _n( 'Tag:', 'Tags:', count( get_the_tags() ), 'storefront' ) ); ?> <?php echo wp_kses_post( $tags_list ); ?>
        </div>
        <?php endif; ?>
    </aside>

    <?php
}

}

if ( ! function_exists( ‘storefront_paging_nav’ ) ) {
/**
* Display navigation to next/previous set of posts when applicable.
*/
function storefront_paging_nav() {
global $wp_query;

    $args = array(
        'type'      => 'list',
        'next_text' => _x( 'Next', 'Next post', 'storefront' ),
        'prev_text' => _x( 'Previous', 'Previous post', 'storefront' ),
    );

    the_posts_pagination( $args );
}

}

if ( ! function_exists( ‘storefront_post_nav’ ) ) {
/**
* Display navigation to next/previous post when applicable.
*/
function storefront_post_nav() {
$args = array(
‘next_text’ => ” . esc_html__( ‘Next post:’, ‘storefront’ ) . ‘ %title’,
‘prev_text’ => ” . esc_html__( ‘Previous post:’, ‘storefront’ ) . ‘ %title’,
);
the_post_navigation( $args );
}
}

if ( ! function_exists( ‘storefront_posted_on’ ) ) {
/**
* Prints HTML with meta information for the current post-date/time and author.
*
* @deprecated 2.4.0
*/
function storefront_posted_on() {
_deprecated_function( ‘storefront_posted_on’, ‘2.4.0’ );
}
}

if ( ! function_exists( ‘storefront_homepage_content’ ) ) {
/**
* Display homepage content
* Hooked into the homepage action in the homepage template
*
* @since 1.0.0
* @return void
*/
function storefront_homepage_content() {
while ( have_posts() ) {
the_post();

        get_template_part( 'content', 'homepage' );

    } // end of the loop.
}

}

if ( ! function_exists( ‘storefront_social_icons’ ) ) {
/**
* Display social icons
* If the subscribe and connect plugin is active, display the icons.
*
* @link http://wordpress.org/plugins/subscribe-and-connect/
* @since 1.0.0
*/
function storefront_social_icons() {
if ( class_exists( ‘Subscribe_And_Connect’ ) ) {
echo ”; subscribe_and_connect_connect(); echo ”;
}
}
}

if ( ! function_exists( ‘storefront_get_sidebar’ ) ) {
/**
* Display storefront sidebar
*
* @uses get_sidebar()
* @since 1.0.0
*/
function storefront_get_sidebar() {
get_sidebar();
}
}

if ( ! function_exists( ‘storefront_post_thumbnail’ ) ) {
/**
* Display post thumbnail
*
* @var $size thumbnail size. thumbnail|medium|large|full|$custom
* @uses has_post_thumbnail()
* @uses the_post_thumbnail
* @param string $size the post thumbnail size.
* @since 1.5.0
*/
function storefront_post_thumbnail( $size = ‘full’ ) {
if ( has_post_thumbnail() ) {
the_post_thumbnail( $size );
}
}
}

if ( ! function_exists( ‘storefront_primary_navigation_wrapper’ ) ) {
/**
* The primary navigation wrapper
*/
function storefront_primary_navigation_wrapper() {
echo ”;
}
}

if ( ! function_exists( ‘storefront_primary_navigation_wrapper_close’ ) ) {
/**
* The primary navigation wrapper close
*/
function storefront_primary_navigation_wrapper_close() {
echo ”;
}
}

if ( ! function_exists( ‘storefront_header_container’ ) ) {
/**
* The header container
*/
function storefront_header_container() {
echo ”;
}
}

if ( ! function_exists( ‘storefront_header_container_close’ ) ) {
/**
* The header container close
*/
function storefront_header_container_close() {
echo ”;
}
}

Read also : Merchant key is invalid | The supplied variables are not according to specification |

Thando

Leave a Reply

Your email address will not be published. Required fields are marked *

Next Post

Pitch Black Afro given 10 Years in prison

Fri Jun 19 , 2020
Spread the love           Pitch Black Afro given 10 Years in prison . The rapper’s real name is Thulani Ngcobo a South African Super Start . It is said that Pitch Black Afro killed his wife. There was an argument which led to the tragedy and it is said that Pitch Black […]
Pitch Black Afro given 10 Years in prison

Celebrity News