Wooassist

Assistance for Your Woocommerce Store

  • How it Works
  • Pricing
  • Services
    • Site Maintenance
    • AI SEO and Content Marketing
  • Blog
    • How-To Articles
    • Code Snippets
    • SEO For E-Commerce
    • Theme and Plugin Reviews
    • Wooassist News
    • WordPress/WooCommerce News
    • Interviews
  • About Us
  • Contact
You are here: Home / Archives for woothemes

Why Storefront Theme is Good for Developers

September 12, 2015 By John 2 Comments

With its growing popularity and thousands of WooCommerce developers preaching how great this theme is, Storefront is without a doubt one of the best WooCommerce themes out there. Like some developers working closely on WooCommerce projects, we have also developed a liking to the Storefront theme.

Storefront was created by WooThemes, the same individuals who developed WooCommerce.  They created the theme with WooCommerce in mind and because of this, the integration with WooCommerce and its extensions is seamless.

storefront

Do Developers Prefer Storefront as a Base Theme?

When developing new websites, WordPress developers usually start with a base theme. As of today, there are hundreds of base themes to choose from. Some of the notable ones include Genesis, Roots, Underscores, Canvas and so much more.

Storefront-download-count-Feb2017

With more than 1 million downloads since it was launched last November 2014, Storefront is becoming more and more popular every day. However, only a few developers have actually switched or started using the theme for creating new sites. There are several reasons behind this but it is mainly because most developers prefer to stick to their current workflow, and changing the base theme means that you have to develop a new workflow to go with your base theme.

Is Storefront Friendly For Beginners?

A lot of beginner developers may find the Storefront theme not as friendly compared to other themes. If you look at the compiled style.css file, you’ll see that it is not your regular base theme. Storefront uses SASS, though organized neatly, most beginners aren’t familiar with it and may feel a bit overwhelmed when they see the compiled files.

storefront2

Another reason why beginners are hesitant to use the theme is because they don’t fully understand how the CSS grid system works. Storefront uses a flexible CSS grid, thanks to Susy, but when a beginner looks at it, they will see a lot of percentage and em values which scares them as most beginners prefer to work with px values.

Another reason why most beginner developers would try to avoid Storefront is the action and filter hooks. Storefront has hooks and filters to make it friendlier to developers who would like to extend the theme’s functionality. Beginners who don’t understand how hooks and filters work would probably find it difficult to wrap their heads around the Storefront’s overall coding structure.

You’ll Learn More With Storefront

If you are a newbie developer, I highly recommend that you work with Storefront and understand its coding concepts. Storefront and WooCommerce are coded and developed by the same company, therefore the coding standards used for both are pretty similar. So if you are looking into working with WooCommerce on your projects, learning Storefront’s coding structure will give you tons of benefits. Understanding the concept of the theme also helps you understand how WooCommerce is coded; this is what I realized when working on projects using both Storefront and WooCommerce.

storefront1

Aside from the fact that it follows wordpress coding standards, Storefront also uses Underscores as its base theme. If you are not familiar with Underscores, it is a popular starter theme created by Automattic. They use this starter theme on all of their themes available on WordPress.com. What this means for developers? While learning how to develop websites with Storefront, you will also learn how to build websites using other themes developed using the Underscores as a base theme.

Understanding Storefront’s Coding Structure

Let us look at the directories and files of Storefront. Most files on its root directory are the standard WordPress files, but if you look at them one by one you will find that most of the usual code that you see on other themes are missing. This is because Storefront is powered with action hooks and filters.

I believe the most important file to look at is the functions.php file. Removing all the comments reveals that this file only has one line of code.

require get_template_directory() . ‘/inc/init.php’;

What this line does is call the init.php file under the inc directory. On that file, you can see lines of code that then adds all the files needed by the theme. This files also helps us understand how the code is divided into sections.

Storefront Theme has five main directories under the inc directory:

  • functions
  • structure
  • customizer
  • WooCommerce
  • admin

We can say that these directories are the theme’s sections in its code.

storefront3

The functions section includes the essential functions that are needed by the theme to define what it supports: menu, widget areas, featured images, etc. It also includes functions that are used independently on some of the theme’s templates.

The structure section is where code is divided per template area. In here you will see most of the code used on loop and on the general areas of your website’s frontend.

The customizer sections involve all functions for the theme to support the WordPress’ customizer.

The WooCommerce sections of course, involves all functions for the theme to support the WooCommerce plugin.

And lastly, the admin section is where you can see the functions used by theme for the backend (welcome screen).

I’d like to point out that it is essential to understand the purpose of each directory that way doing your next web development project would be easier.

Know What Functions Are Hooked Where

One of the problems I assume developers will have is determining what functions are hooked in a do_action or apply_filters statement. Unlike Genesis and other similar frameworks, Storefront doesn’t have a proper documentation for its hooks yet.

What I recommend is that when you want to add or modify something on a section of the theme, try to look first in the file where you think code is. An example for this is if you want to change the site title to an image logo, then open up the main header.php file.

After opening that file what you will then need to find is the do_action statement (for a filter, find the apply_filters statement). Above the statement you will see all of the functions hooked on it in the php comment and how they are  in order by priority.

action_hooks filters

If you want to list all available hooks on the theme, then the best way to do this is use your favorite text editor, like notepad++ or sublime, and find the do_action and apply_filters statement on all the storefront files. If you do this, I suggest that you then put all hook reference on a file.

Storefront As A Theme Framework

I believe that Storefront shouldn’t be treated as a theme, but as a working theme framework. If you look at the main functions.php file again, you can see a comment there that recommends using a child theme for customizations. The reason is pretty straightforward which is so we don’t lose our customizations during updates.

WooThemes have created a few child themes for people to use. These child themes are good examples that you can check and review to learn how WooThemes are extending the base theme’s functionalities using a child theme.

susy-and-bourbon

Take note that you don’t need to learn SASS to style your child theme. You can just use plain CSS for that, especially if the look and feel that you want to achieve doesn’t really differ much from that of the Storefront. However, we highly recommend that aspiring and seasoned developers learn SASS, because this significantly makes development and styling a lot easier.  Also, if you are working with SASS, you also need to familiarize yourself with Bourbon and Susy.

If you’re planning to just go with plain CSS, I suggest you at least familiarize with Susy so it will be easier for you to understand how Storefront uses its grid system.

Filed Under: Theme and Plugin Reviews Tagged With: CSS, Storefront, website development, WooCommerce, woothemes

Why Use Storefront Theme on Your WooCommerce Store

August 26, 2016 By John Leave a Comment

Storefront is the ideal platform for your WooCommerce store, providing a rock-solid foundation without the extra bloat or features. Developed by WooThemes, it reaches up to 3,000 downloads daily. But why use Storefront Theme on your WooCommerce Store? Find out in this infographic.

Why Use Storefront Theme on Your WooCommerce Store

To share this infographic on your site, just use the embed code below.

Filed Under: Theme and Plugin Reviews Tagged With: e-commerce, Storefront, website development, website maintenance, WooCommerce, WooCommerce products, woothemes, WordPress

The Wooassist Blueprint: What Goes on in the Wooassist Backend

July 22, 2016 By John Leave a Comment

We’ve created our fair share of WordPress sites and provided support for other WooCommerce store owners since 2014. At the same time, we maintain and improve Wooassist.com. But what goes on in the Wooassist backend? Here we’ll provide a sneak peek of what goes on behind the scenes.

Publishing Platform

wordpress-logo

WordPress is one of the best Content Management System (CMS) with over 60 million websites powered, Woasssist included. It is free and open-source, with thousands of available plugins and themes to change and extend the look and functionality of your site.

Hosting Provider

WPEngine-logo-white

WPEngine provides one of the best WordPress hosting services on the web. Our hosting plan with WPEngine comes with caching, backup features and Content Delivery Network (CDN) provided by their partner MaxCDN. They use Ever Cache for speed and massive scalability. They also have one of the best support compared to other hosting providers.

WordPress Themes

Genesis Framework

logo-Genesis-Framework

Genesis Framework is a powerful foundation for building websites in WordPress. It is compatible with WooCommerce and anything can be customized around its core code using child themes. It is also SEO optimized.

 Parallax Pro

logo-Parallax-Pro-white

We use Parallax Pro theme on top of the Genesis framework. Notice how the Wooassist homepage content has a vertical design for easy visual eye movement and flow. As you scroll down the page, you will see that the content is divided into sections. The theme is also mobile responsive.

Installed Plugins

It is best practice to deactivate and delete any unused plugins on your site to minimize site bloat. Just stick to what features you need and the plugin that offers just that.

WooCommerce

WooCommerce

Since Wooassist provides WooCommerce support, it makes sense that we use WooCommerce.

Built with developers in mind, WooCommerce is extendable, adaptable and open source. It works with the core features of WordPress and is one of the most widely used ecommerce plugins. It’s free and allows for maximum flexibility and customization. You can even expand its features with a growing collection of more than 300 extensions.

WooCommerce Customizer

WooCommerce-Customizer

WooCommerce Customizer is a free plugin that adds an extra settings page for WooCommerce. This helps you make quick changes which otherwise would require writing some custom PHP functions. Basically, you can optimize the look of your WooCommerce store for optimum conversion, without writing any code.

Genesis Connect for WooCommerce

Genesis-Connect-for-WooCommerce

When WooCommerce is installed on a site using the Genesis platform, you may find some product pages do not display properly. Genesis Connect for WooCommerce fixes this by replacing WooCommerce’s built-in shop templates with its own Genesis-ready versions. These templates are single-product.php, archive-product.php and taxonomy.php.

WooCommerce Google Analytics Integration

WooCommerce-Google-Analytics-Integration

WooThemes created WooCommerce Google Analytics Integration plugin and is a must to integrate analytics in WooCommerce versions 2.1 and up. This plugin inserts tracking codes into your store pages.

WP-Optimize

WP-Optimize

We use WP-Optimize to clean and keep our database down to a reasonable size. The plugin helps clean up your WordPress database by removing old revisions of posts and stale/trashed comments. It also allows for optimization of your WordPress core tables.

WordPress Related Posts

WordPress-Related-Posts

WordPress Related Posts automatically adds thumbnails at the footer of your content. This helps readers find other relevant posts in our blog for further reading.

WooCommerce Paypal Pro

WooCommerce-PayPal-Pro

We use WooCommerce Paypal Pro as our payment gateway. Our clients can pay with their credits cards. A Paypal account is not necessary.

WooCommerce Checkout Manager

WooCommerce-Checkout-Manager

We use WooCommerce Checkout Manager to customize the fields on our checkout page. This allows for faster and easier checkout.

Akismet

Akismet

We trust Akismet to safeguard our site against spam comments. This product by Automattic comes bundled with WordPress installations. You just need to sign up at their website and get your API key to activate it. Akismet automatically checks incoming comments and moves ‘spam-like’ comments to the Spam folder.

PopupAlly

PopupAlly

We use PopupAlly to show time-delayed and exit intent popups for our free e-book offer and newsletter subscription, respectively. The plugin makes it easy to customize popup forms even for novice users.

Yoast SEO

Yoast-SEO

We use Yoast SEO to optimize our blog post and pages for SEO. It is a powerful plugin that helps to give any site an SEO boost. This plugin can also help optimize product pages and product categories in WooCommerce.

Visual Form Builder

Visual-Form-Builder

We use Visual Form Builder to create forms such as our contact form and custom package form. Visual Form Builder is easy to set up and use even for novice users.

Responsive Pricing Table

Responsive-Pricing-Table

We use Responsive Pricing Table plugin to add a ‘Pricing Tables’ tab in the WordPress admin panel . This allows for creating pricing tables without coding. You can add features of up to 5 plans and display the price table anywhere with a shortcode.

Redirection

Redirection

Redirection is a free plugin that makes managing our 301 redirects easier. It also helps us keep tabs on any 404 errors. We use this mainly when changing slugs of blogs post when optimizing for SEO.

Filed Under: Theme and Plugin Reviews, Wooassist News Tagged With: Genesis, navigation, optimizations, plugins, PopupAlly, redirection, website development, Wooassist, WooCommerce, WooCommerce products, woothemes, WordPress, WPengine, Yoast

How to Rename Primary Menu in Mobile View for Storefront Theme

February 26, 2015 By John 6 Comments

Updated 18/2/16 : Storefront Theme was updated. Adding a filter hook to rename the navigation.

Rename Primary Menu in Mobile View for Storefront ThemeIf you have donned the Storefront Theme by WooThemes and tested the mobile view, you might have noticed that your main navigation/menu turns into a collapsible menu. While this menu does serve its purpose in the mobile view, it being named “Primary Menu” isn’t very desirable. You most likely need to change it to something more appropriate for your needs.

Different websites have different navigations so from the theme developer’s standpoint, putting in a not very descriptive text like “Primary Menu” will serve its purpose just fine. But for a website owner like you who knows what he wants, you’d want something more specific for that mobile collapsible menu. Maybe you’re selling your own line of apparel and your menu is filled with different product categories, so you want the text to be something like “Product Categories”, “Browse Clothing Line” or maybe even make it a call-to-action like “Shop Now” or “Shop Online”. Bottomline, you know what you need the text to be on that mobile collapsible menu. Lucky for you, it’s easy enough to accomplish with a few lines of code.

Get a Child Theme

Before we proceed, make sure you are running your website on a child theme. To begin with, there is really no reason why you shouldn’t have a child theme unless you want any changes you made to your theme to disappear whenever the theme updates. If you don’t have a child theme yet, get one.

Add the Filter

Now that you have a child theme, paste this code into your child theme’s functions.php file.

add_filter( 'storefront_menu_toggle_text', 'jk_storefront_menu_toggle_text' );
function jk_storefront_menu_toggle_text( $text ) {
 $text = __( 'MY NAVIGATION' );
 return $text;
}

 

Change the Text

Do you see the line with the following code?

$text = __( 'MY NAVIGATION' );

You’ll just need to modify the text “MY NAVIGATION” and change it with the text that you want on your collapsible mobile menu.

 

Filed Under: Code Snippets, How-To Articles Tagged With: call-to-action, child theme, code snippet, design tweaks, how-to, mobile friendly, navigation, responsive design, Storefront, woothemes

How to Remove Horizontal Line under Page Title in Storefront Theme

February 26, 2015 By John 2 Comments

Updated 18/2/16 due to Theme Update

For one reason or another, you might find that you’d like to remove that horizontal line just below the page title in Storefront theme. The horizontal line becomes prominent when you don’t have a title for your page which could happen on home pages.

Remove Horizontal Line under Page Title in Storefront Theme
That line that the arrow is pointing at.

To remove the horizontal line, simply add the code below to your child theme Styles.css file.

.page-template-template-homepage-php .hentry .entry-header, .page-template-template-homepage-php .hentry .entry-header h1 {
 border-bottom: 0;
margin-bottom: 0px;
 }

The code “margin-bottom: 0px;” is necessary to remove the bit of extra spacing below where the line used to be.

Now you know how to remove horizontal line under page title in Storefront Theme but if that doesn’t fix your problem, let us know in the comments.

Filed Under: Code Snippets, How-To Articles Tagged With: code snippet, CSS, design tweaks, how-to, Storefront, woothemes

  • « Previous Page
  • 1
  • 2
  • 3
  • Next Page »
Let us support your online store so you can manage your business

Get started today

Get 2 Hours of FREE SUPPORT

We are so confident that you will love our services that we will give you your first 4 hours at a 50% discount

That’s 4 hours for only $75

BUY NOW

Free eBook

5 Things Every Online Store Can Fix On Their Website In The Next Week To Increase Sales

Quick Links

  • How it Works
  • Pricing
  • Blog
  • Contact
  • About Wooassist
  • My Account
  • Checkout
  • Privacy Policy
  • Cookie Policy
  • Terms and Conditions

Wooassist

Australia:
59 Luke St.
Hemmant QLD 4174

Philippines:
San Miguel St.
Poblacion, Iligan City 9200

Connect

     

Copyright © 2026 · Wooassist

Yours FREE!

5 Things Every Online Store Can Fix On Their Website In The Next Week To Increase Sales