• Resolved Irene

    (@arlinaite)


    Hi,
    May be some body could help. Thanks in advance.
    I use Hueman Theme version 2.2.3. The home page hasn’t h1 tag, because I use a full header image.
    How to fix that?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi arlinaite. This thread discusses how to display the header image, site title and description all at the same time. You could make those modifications then, instead of positioning the title and description as discussed there, use this css to hide them from display but leave them in the structure for SEO:

    .site-title, .site-description {
        display: none;
    }
    Thread Starter Irene

    (@arlinaite)

    Hi Bdbrown
    Sorry I was traveling, couldn’t answer before.
    I’m not sure, I have to change the css and what else?
    Thanks for your answer.

    You’d need to modify the theme header.php file and then add some css as discussed in that thread. You should use a child theme if you’re not already. Creating a child theme with Hueman is pretty easy:
    1. In Theme Options click the Help tab in the upper righthand corner.
    2. One of the options in the list is to download a sample child theme. This downloads the theme zip file to your local computer.
    3. Install the new theme in your Admin panel by selecting Add New > Upload Theme > Choose File, then select the zip file you downloaded.
    4. Activate the child theme.
    You’ll now have a pre-configured child theme with a style.css file and functions.php file to which you can add customizations.

    Thread Starter Irene

    (@arlinaite)

    Hi bdbrown,
    I all ready have a child theme.
    In the thread you mentioned there are solution for different problems.
    The site is alive and I don’t wont to make errors. Then to be shore I understand your directives:
    1) I have to modify the header.php including the next code:

    <?php if ( ot_get_option('header-image') ): ?>
    	<div class="my-header-div">
    		<?php echo alx_site_title(); ?>
    		<?php if ( ot_get_option('site-description') != 'off' ): ?><p class="site-description"><?php bloginfo( 'description' ); ?></p><?php endif; ?>
    		<a href="<?php echo home_url('/'); ?>" rel="home">
    			<img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>">
    		</a>
    	</div>
    <?php endif; ?>

    2) And then the style.css Including this code:

    .site-title, .site-description {
        display: none;
    }

    Thanks’ in advance

    Yes. Technically you don’t need the ‘site-description’ option. What we’re doing is using the option that checks to see if there is a header image, which you have, and we’re adding the site title to that block so the theme will generate the <h1> tag. So your modified header.php section of code would be this:

    <?php if ( ot_get_option('header-image') ): ?>
    	<div class="my-header-div">
    		<?php echo alx_site_title(); ?>
    		<a href="<?php echo home_url('/'); ?>" rel="home">
    			<img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>">
    		</a>
    	</div>
    <?php endif; ?>

    Then you would hide the site title from the display which leaves it in the page code for SEO:

    .site-title {
        display: none;
    }

    The site is alive and I don’t wont to make errors.

    You might consider adding a subdomain on your domain, then use one of the many plugins (I like Duplicator) to copy your live site to the subdomain for development and testing.

    Thread Starter Irene

    (@arlinaite)

    Thanks’ for your advice.
    I have a wp multisite, I use NS Cloner I will research about using a test site. Is a bilingual site and I use different child themes for each language.
    How you manage the test site, for not been scanned by search engines?

    You can’t prevent it but you can use Settings > Reading > Search Engine Visibility.

    Thread Starter Irene

    (@arlinaite)

    Hi bdbrown,
    I insert code according previous instruction.
    I checked with bing seo tool and with woorank, and still indicates that lack H1.
    My site:
    https://goo.gl/bas8ZD
    What’s wrong?
    Thanks in advance

    I didn’t see any problems when I checked it with Woorank:
    https://www.screencast.com/t/CnlbAtNaQP2p

    Thread Starter Irene

    (@arlinaite)

    Thanks’ bdbrown!!
    I checked again and now is ok.
    I think that bing seo tool is not checking de fresh page.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘h1 in the home page Hueman Theme’ is closed to new replies.