• Resolved vexxatu

    (@vexxatu)


    My problem is simple,i think.I have a custom logo on my blog and i want to hide the blog title and description.I must mention that both are wraped in H1 tags.Hiding them isn’t a problem,i can add display: none; in the css file(at H1 config).The real problem is that i have also my posts wrapped in H1 tags and if i “display: none;” they dissapear too.Is there something i missed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • yes, in the header.php look for the stuff enclosed in the <h1> tags.. it’ll look similar to this:

    <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>

    remove stuff as necessary, and the text will go away.

    Thread Starter vexxatu

    (@vexxatu)

    ya…i know this…but i want the search engine crawlers to still find this information.I just dont want to display it.

    This is my current code in header.php

    <h1>/”><?php bloginfo(‘name’); ?>
    <p class=”description”><?php bloginfo(‘description’); ?></h1>

    I still want to keep the h1 tags along with the description and title,mainly for the SEO.

    so add another class and hide that in your css.

    You can assign multiple classes:

    <sometag...class="firstclass secondclass"

    Thread Starter vexxatu

    (@vexxatu)

    ya..i know that also…but i want to use h1..as i read…it’s better for SEO.So,i don’t know if there is another alternative

    you can still use h1..

    am I not understanding? you want it there but hidden right? Use 2 classes.

    <h1 class="blah" "blah2">

    hide it with blah2

    Thread Starter vexxatu

    (@vexxatu)

    oh..i get it..now i understand 🙂

    tnx alot..im on it 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hiding title and description in H1 tags’ is closed to new replies.