Remove Page Title
-
Hey, I am using the Storefront theme, and between the header and my first image there is some blank space with an underline which is where the page title is suppose to go. I have not entered a title so thats why it is blank, but if I put a title in it goes there. Anyway, I was wondering how I could remove that line and blank space? I tried a couple other forums but nothing seemed to work. But, from what I understand, I am suppose to change the header.php or my template-homepage.php . I am pretty sure it would be the header one tho, so if it helps, here is my header.php code:
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”content”>
*
* @package storefront
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> <?php storefront_html_tag_schema(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”><?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<?php
do_action( ‘storefront_before_header’ ); ?><header id=”masthead” class=”site-header” role=”banner” <?php if ( get_header_image() != ” ) { echo ‘style=”background-image: url(‘ . esc_url( get_header_image() ) . ‘);”‘; } ?>>
<div class=”col-full”><?php
/**
* @hooked storefront_skip_links – 0
* @hooked storefront_social_icons – 10
* @hooked storefront_site_branding – 20
* @hooked storefront_secondary_navigation – 30
* @hooked storefront_product_search – 40
* @hooked storefront_primary_navigation – 50
* @hooked storefront_header_cart – 60
*/
do_action( ‘storefront_header’ ); ?></div>
</header><!– #masthead –><?php
/**
* @hooked storefront_header_widget_region – 10
*/
do_action( ‘storefront_before_content’ ); ?><div id=”content” class=”site-content” tabindex=”-1″>
<div class=”col-full”><?php
/**
* @hooked woocommerce_breadcrumb – 10
*/
do_action( ‘storefront_content_top’ ); ?>If you need the template-homepage.php code I can put that as well, but IDK if that is what I would need to change.
- The topic ‘Remove Page Title’ is closed to new replies.