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 / Code Snippets / How to Remove Horizontal Line under Page Title in Storefront Theme

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.

People that read this article also liked

How to Rename Primary Menu in Mobile View for Storefront Theme How to Move the Navigation Menu Outside of Header for Storefront How to Change the Arrows in Pagination for Storefront and WooCommerce internet-characterHow to Create a Child Theme for Storefront

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

Comments

  1. sander says

    December 29, 2015 at 8:48 am

    Hello

    I’m from the Netherlands so my English is not very good! I hope it’s not a problem!

    I’ve entered the code is style.css from my Child theme. But the line is still there? Please can you help me?

    Reply
    • Nick J says

      February 23, 2016 at 7:03 am

      Can you post a link to your site?

      Make sure you have activated your child theme and the code has been inserted correctly. Try using the Simple Custom CSS plugin and paste the CSS code there instead.

      Also, there was an update to Storefront styling and now there are now two lines under the titles.

      We have updated the code in the article. Please try this code instead:

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

      Reply

Leave a Reply Cancel reply

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


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