Help with <h1> tag

by k0103707 8 replies
Got a problem here it seems the <h1> tag isn't setup correctly on wordpress. It's hiding the <h1> tag.

I want to remove:
'display:none'

and replace it with:
'display:block'

I've tried many different things but nothing worked... This is the code that shows up on page.php in wordpress:

<div class="container">
<div class="row">
<?php
$title_class = "col-xs-12 col-md-12 col-lg-9 col-sm-12";
$show_breadcrumb = true;
if (isset($smof_data['use_breadcrumb']) && $smof_data['use_breadcrumb'] == 0) {
$title_class = "col-xs-12 col-md-12 col-lg-12 col-sm-12";
$show_breadcrumb = false;
}
?>
<div class="<?php echo $title_class; ?>">
<h1 class="page_title"><?php the_title(); ?></h1>
<?php if ($teaser != '') { ?>
<div class="page_teaser"><?php echo do_shortcode($teaser); ?></div>
<?php } ?>
</div>
<?php if($show_breadcrumb) { ?>
<div class="col-xs-12 col-md-12 col-lg-3 col-sm-12">


And this is the same thing showing as source code:

<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-3">
<div id="logo"><a href=http://www.pcmaintenancelondon.co.uk><img src='http://www.pcmaintenancelondon.co.uk/wp-content/uploads/2013/12/logo1.png' alt='Computer Repairs London, Laptop Repairs London, PC Repairs London.....'/></a><h1 style='display:none'><a href=http://www.pcmaintenancelondon.co.uk>Computer Repairs London, Laptop Repairs London, PC Repairs London.....</a></h1></div> </div>
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-9">


So i'm not able to alter the <h1> tag so it removes the display:none... as the display:none doesn't show up on wordpress theme editor in page.php, it shows some similar code though, the code is shown above.
What needs to be done?

Website: pcmaintenancelondon.co.uk
#search engine optimization #&lth1&gt #<h1> #tag
Avatar of Unregistered
  • Profile picture of the author nettiapina
    You're probably looking from the wrong place. WordPress' CSS styles are in style.css. Try to search that for "h1", ".page_title" or "display: none".
    Signature
    Links in signature will not help your SEO. Not on this site, and not on any other forum.
    Who told me this? An ex Google web spam engineer.

    What's your excuse?
    {{ DiscussionBoard.errors[8971975].message }}
  • Profile picture of the author k0103707
    checked styles.css, this is pretty much the only thing that came up that made sense. Is it this?

    #feature h1.page_title {

    font-size: 24px;

    margin-bottom: 0;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: -.005em;

    margin-top: 0;

    line-height: 1.2;

    overflow:hidden;

    text-overflow:ellipsis;

    }
    {{ DiscussionBoard.errors[8972013].message }}
  • Profile picture of the author nettiapina
    Ah, sorry. That doesn't help you, but actually it's hidden from the HTML. Go through your theme's settings if it has any. Check front-page.php and index.php. Here's how the templating system works.

    It seems that the two snippets above are not the same template, so indeed it was the wrong place. Just not the place I offered in the first comment.
    Signature
    Links in signature will not help your SEO. Not on this site, and not on any other forum.
    Who told me this? An ex Google web spam engineer.

    What's your excuse?
    {{ DiscussionBoard.errors[8972025].message }}
  • Profile picture of the author k0103707
    The theme has lots of settings, dont see anything html or <h1> related. Found the following at single.php:

    <!-- Start Container -->
    <div class="container">
    <div class="row">
    <div class="col-xs-12 col-md-12 col-lg-9 col-sm-12">
    <h1 class="page_title"><?php the_title(); ?></h1>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-3 col-sm-12">
    <?php tt_breadcrumbs(); ?>
    </div>

    Tried others: index.php and the other nothing there
    {{ DiscussionBoard.errors[8972095].message }}
  • Profile picture of the author webcosmo
    Maybe the page_title is display:none because instead you show a logo? I would try to see in wp admin settings to see if there is anything related to page title, then edit a php file and add a h1 tag with inline style display block to see what happens.
    {{ DiscussionBoard.errors[8972169].message }}
  • Profile picture of the author k0103707
    yes i also was thinking its the page_title thats causing the problem. I've checked the settings on wp admin, settings > general. I presume this is where its getting the <h1> page title from... i cant see any options to remove display:none. It seems its built this way... Not sure how to alter this.

    My only other thought about this is that i should create a new heading1 and write the keywords there, which will show up on the front page of the website, only problem is the keywords dont make for good content together and dont make for a good header together... hmm

    keywords: Computer Repairs London, Laptop Repairs London, PC Repairs London, pc maintenance london
    {{ DiscussionBoard.errors[8974454].message }}
    • Profile picture of the author yukon
      Originally Posted by k0103707 View Post

      My only other thought about this is that i should create a new heading1 and write the keywords there, which will show up on the front page of the website, only problem is the keywords dont make for good content together and dont make for a good header together... hmm

      keywords: Computer Repairs London, Laptop Repairs London, PC Repairs London, pc maintenance london
      You could use image alt-text & wrap the alt-text in an <h1> tag. That will show up in Google Cache (text version) as plain text wrapped in an <h1> tag.

      Example:
      Code:
      <h1><img src="hxxp://domain.com/images/computer-repairs-london.jpg" alt="Computer Repairs London"></h1>
      Don't spam it out.

      I would do one <h1> per page with the alt-text as whatever alternative page title you would like to be shown in the SERPs (keep the alt-text short & simple).

      The reason I say this is because Google will sometimes pull the SERP title from an <h1> tag. I know this because I can get Google to pull the <h1> tag text on purpose & show it as the SERP title.
      Signature
      Hi
      {{ DiscussionBoard.errors[8974537].message }}
  • Profile picture of the author k0103707
    Thank you yukon as usual

    I'll leave the current <h1> tag along, since it's not influencing anything and i'll add the code above. Cheers!
    {{ DiscussionBoard.errors[8978116].message }}
Avatar of Unregistered

Trending Topics

  • 120 {{ upvoteCount | shortNum }}

    Warriors .... Warriors.... what would you like to LEARN?

    Good Morning awesome Warriors... I'm happy to announce that The Warrior Forum is planning to create our first COURSE. Yes... Powered by Warrior Wisdom... yeah!! Made at home. But before ... [read more]

  • 99 {{ upvoteCount | shortNum }}

    How I Sold 985 Copies of an Affiliate Offer in 5 Days (Step by Step)

    When I first started online in 2002, it took me a year to sell 985 copies of anything. These days, I can typically do it in the span of a ... [read more]

  • 4 {{ upvoteCount | shortNum }}

    5 Articles you need to read this Week About Internet Marketing

    Hey Warriors... welcome to a new week at the Warrior Forum We have some epic articles this week.... and we are super excited with the quality of the content. If ... [read more]

  • 65 {{ upvoteCount | shortNum }}

    1 Billion Dollar - Really ???

    Hey Warriors: Lets' assume you have "1 Billion Dollar" in your bank account. What would you do with this money ? Curious to know your views Cheers, Steve

  • 62 {{ upvoteCount | shortNum }}

    1 Powerful Concept that Grows Your Business

    Connect with people interested in what you have to offer. Mindfully. Versus desperately running from prospect to prospect, or from number to number. This idea sounds simple, and like common ... [read more]