H1 tags around header image in mystique

by pdoey
10 replies
  • WEB DESIGN
  • |
Hi all,
just wondering if any one can help?
I am very in-experienced website builder and am having trouble with too many h1 tags as reported back by Seo quake analysis.
On studying source code it seems, as well as my main page heading, there are h1 tags around the logo/image:
<h1 id="logo"><a href="http://lo-costmoves.co.uk"><img src="http://lo-costmoves.co.uk/wp-content/uploads/Lo-cost moves header2.png" title="Lo-Cost Moves" width="940" height="175" alt="Lo-Cost Moves" /></a></h1>
I have been right through the theme editor to try and see where I can sort this but just cannot find anywhere.
I have also searched Google but to no avail.
Any help or advice would be very much appreciated.
#header #image #mystique #tags
  • Profile picture of the author rhinocl
    You should be able to see the h1 tags right in the source code but the image addresses are probably generated. If you just search on
    Code:
    <h1
    you should find them. (I didn't close the tag as there might be a class after the h1 before the
    Code:
    >
    {{ DiscussionBoard.errors[7448078].message }}
    • Profile picture of the author pdoey
      Thanks for your reply,
      I can find the h1 tags easily enough in source code but cannot find where to edit or remove them in the Theme editor when logged into the site
      {{ DiscussionBoard.errors[7450992].message }}
      • Profile picture of the author run
        Originally Posted by pdoey View Post

        I can find the h1 tags easily enough in source code but cannot find where to edit or remove them in the Theme editor when logged into the site
        What you mean is in the WP Dashboard > Appearances > Editor > header.php right?
        So, it might generate from your function.php; looking there might helpful!

        Signature
        I just wanna tell you that most of the links in the signature are trash and/or a trap to make you pay!
        {{ DiscussionBoard.errors[7451049].message }}
  • Profile picture of the author oldsteel68
    Your probably going to have to edit it in the the sites index file through ftp.
    {{ DiscussionBoard.errors[7451012].message }}
  • Profile picture of the author Istvan Horvath
    The online theme editor is NOT for this kind of tasks. Period. Don't forget: it doesn't have Undo button...

    If you have intentions to seriously edit theme files and you don't have a decent text editor... you are fooling yourself. Theme files editing should... no, MUST be done in the following way:
    - have a backup copy of the file you are going to edit (btw, any normal website owner has a backup copy of the active theme on his/her own computer!)
    - open a copy of the file for editing in a text editor (can be free, like PSPad)
    - edit away and save the file
    - upload it via FTP to replace the non-edited version
    - check your site
    - repeat the steps above until you are happy
    Signature

    {{ DiscussionBoard.errors[7451355].message }}
  • Profile picture of the author clickbump
    First, via FTP, make a backup of your theme's header.php file in case you screw something up. You'll find it at "wp-content/themes/mystique/header.php"

    Next, go to your site's wordpress admin area and click on "Appearance > Editor" and locate the "header.php" file and click on it to open it in the editor window.

    Finally, do a find/search for:

    Code:
    <h1 id="logo">
    Once you locate that, you can change the h1 to an h2 or h3 or whatever you want there. Just be sure to also locate the closing </h1> tag and replace it with the corresponding closing tag of your replacement (</h2>, </h3>, etc).

    For example:

    Code:
    <h2 id="logo">...code....</h2>
    When you've made the changes, you can click the blue button at the button that reads "Update File".

    Helps?
    Signature
    {{ DiscussionBoard.errors[7451391].message }}
    • Profile picture of the author pdoey
      Thanks for that Clickbump (incidently I have your Clickbump pack but just not got round to using it yet!)
      Great advice,
      I have searched for:
      <h1 id="logo">
      in header.php but cannot find it??
      here's copy of file:
      <?php /* Mystique/digitalnature */ ?>
      <!DOCTYPE html>
      <html <?php language_attributes('html'); ?>>

      <head profile="http://gmpg.org/xfn/11">
      <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

      <title><?php bloginfo('name'); ?> <?php wp_title('|', true); ?></title>

      <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
      <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
      <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

      <?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>

      <?php wp_head(); ?>

      </head>
      <body <?php body_class('col-2-right fixed'); ?>>

      <?php
      wp_nav_menu(array(
      'container_class' => 'nav nav-top',
      'menu_class' => 'menu page-content clear-block',
      'theme_location' => 'top',
      'fallback_cb' => '',
      ));
      ?>

      <!-- page -->
      <div id="page">

      <div id="page-ext">

      <!-- header -->
      <div id="header">
      <div class="page-content">
      <div id="site-title" class="clear-block">
      <?php mystique_logo(); ?>

      </div>
      </div>

      <div class="shadow-left page-content">
      <div class="shadow-right nav nav-main">
      <?php
      wp_nav_menu(array(
      'menu_class' => 'menu fadeThis clear-block',
      'theme_location' => 'primary',
      'fallback_cb' => 'mystique_page_menu', // default menu
      'link_after' => '<span class="p"></span>', // pointer arrow on 1st level
      ));
      ?>
      </div>
      </div>

      </div>
      <!-- /header -->

      <!-- main -->
      <div id="main" class="page-content">
      <div id="main-ext" class="clear-block">
      {{ DiscussionBoard.errors[7454351].message }}
    • Profile picture of the author pdoey
      The reason I am trying to do this is because I think that 2, h1 tags on a page is bad seo??
      Just wondering if I am right in thinking this?
      {{ DiscussionBoard.errors[7454399].message }}

Trending Topics