Viewing 15 replies - 1 through 15 (of 17 total)
  • Can yo show us an example of a page that your talking about? Taht will help us to see what’s happening on it.

    Thread Starter aquesada001

    (@aquesada001)

    Thanks for the reply!

    The page is https://www.prestigemedical.org

    It’s right. The only H1 tag that you have on that page is part of the slider, and it’s empty.

    You’ll have to talk to the themes author to see what is happening, or you can play around with the slider files to change it yourself.

    Thread Starter aquesada001

    (@aquesada001)

    Is there any advice you can give me on what to play around with? Unfortunately, the theme author is impossible to get a hold of :/.

    Thread Starter aquesada001

    (@aquesada001)

    I see this in my header.php:

    <?php if(of_get_option(‘logo_type’) == ‘text_logo’){?>

    <?php if( is_front_page() || is_home() || is_404() ) { ?>
    <h1>/” title=”<?php bloginfo(‘description’); ?>”><?php bloginfo(‘name’); ?></h1>
    <?php } else { ?>
    <h2>/” title=”<?php bloginfo(‘description’); ?>”><?php bloginfo(‘name’); ?></h2>
    <?php } ?>

    <?php } else { ?>

    Is that the h1 and h2 I am looking for?

    Well…. I don’t think so. The H1 tag that your home page shows is not in that location. it’s surrounded by the slider elements, and on teh coupel of inner pages that I checked, there’s no H1 tag at all anywhere on the page.

    The idea of not supporting commercial themes (and other products) is becaue of this exact same situation. Without having access to the themes files there’s no way to tell where things are and how they are done. There’s the standard files (like header.php which you know about) that we can point you to along with looking at the slider code, but that’s really all that can be suggested.

    Thread Starter aquesada001

    (@aquesada001)

    I now do understand the reason for not supporting commercial themes, but unfortunately for me, I am stuck with this for now. Until I can change it I have to just try to work with this, I guess. I am just happy for have this site and members like yourself where I can at least ask for some help..

    So I am still trying to figure out what can be done (I am still somewhat new to wordpress). As far as this situation, can I fix it if I find the correct line within the standard files? If so, what would I be looking for and in which file? Or would I just be searching all of the files?

    Thank you again

    Thread Starter aquesada001

    (@aquesada001)

    Or actually, if its only part of the slider then I would have to add tags to the slider pictures? I only added it to the home page, not the individual slider pictures..

    Thread Starter aquesada001

    (@aquesada001)

    I did add them to the slider pictures, how can I tell if it worked or not?

    Thread Starter aquesada001

    (@aquesada001)

    That didn’t seem to work either, I have been looking around but the only place I have found it is on header.php

    <div id="main"><!-- this encompasses the entire Web site -->
    	<header id="header">
    		<div class="container_24 container">
    			<div class="grid_24">
          	<div class="logo">
    
              <?php if(of_get_option('logo_type') == 'text_logo'){?>
    
              	<?php if( is_front_page() || is_home() || is_404() ) { ?>
                  <h1><a>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
                <?php } else { ?>
                  <h2><a>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h2>
                <?php } ?>
    
              <?php } else { ?>
    
              	<?php if(of_get_option('logo_url') != ''){ ?>
                	<a>/" id="logo"><img src="<?php echo of_get_option('logo_url', "" ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
                <?php } else { ?>
                	<a>/" id="logo"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
                <?php } ?>
    
              <?php }?>
            </div>
            <nav class="primary">
              <?php wp_nav_menu( array(
                'container'       => 'ul',
                'menu_class'      => 'sf-menu',
                'menu_id'         => 'topnav',
                'depth'           => 0,
                'theme_location' => 'header_menu'
                ));
              ?>
            </nav><!--.primary-->
            <?php if ( of_get_option('g_search_box_id') == 'yes') { ?>
              <div id="top-search">
                <form method="get" action="<?php echo get_option('home'); ?>/">
                  <input type="text" name="s" value="Site Search" onFocus="if(this.value=='Site Search'){this.value=''}" onBlur="if(this.value==''){this.value='Site Search'}" class="input-search"/><input type="submit" value="Go!" id="submit">
                </form>
              </div>
            <?php } ?>
    	   <?php if( is_front_page() ) { ?>
    		<?php include_once(TEMPLATEPATH . '/slider.php'); ?>
    	  <?php } ?>
          </div>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

    It will be somewhere, but it could be some other settings somewhere else. Knowing what sliders can be like sometimes I’d guess that it’d be in the Javascript somewhere.

    But as I’ve said before, there’s no way for anyone here to know.

    Thread Starter aquesada001

    (@aquesada001)

    Okay, I understand. I just have one more question.. Since I am having all these problems with the <h1> tag and not being able to find it, can’t I just add it to the backend files somewhere so it works for SEO?

    Maybe. Maybe not. It all depends on your theme. You should be able to, but I have got no idea what your theme would use seeing as how it’s not using the standard header.php file.

    Thread Starter aquesada001

    (@aquesada001)

    Actually, according to this SEO check website, I now have h1 tags. I just switched to the twenty thirteen theme to see if that one had it, then switched back to mine and it is now working apparently?

    Thread Starter aquesada001

    (@aquesada001)

    This is what it says:

    Your page contains H1 headings. Their contents are listed below:
    Prestige Medical Center
    Primary Menu
    Home Page
    Welcome Message
    Useful Links
    Medical News Today

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘H1 Tags Not Working?’ is closed to new replies.