How to enable H1 tag in Tempera home page

  • Author
    Posts
  • #56819

    Hi,
    How do I get the H1 tag in the Tempera theme on the home page?
    Thank you

    Website: er.v.free.fr

    #57073
    Zed
    Cryout Creations mastermind

    The H1 tag is used on the site title (if displayed). To display it part of the homepage you’d need to edit the file responsible with the homepage (normally index.php & content-index when the posts list is displayed).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #57074

    Hi,
    Thanks for your reply, I had understood that you had to display the title U site to have the tag <h1>, but I am not coder, I do not know how to do it.
    I had thought about having a logo and the title of the site, but I don’t see either how to do it.
    Does it have an option in the theme to have the logo and the title of the site at the same time?
    Thank you

    #57487
    Zed
    Cryout Creations mastermind

    The logo and site title cannot be displayed simultaneously.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #57519

    Hi,
    But yet it absolutely takes the H1 tag so site title for referencing.
    This means that I can not have a logo at the same time, not possible to add this option?
    Thank you

    #60408

    Hi, sorry for my lack of skills in this field, I’m just a writer.

    I have noticed about the titles of my posts are H2. In order to have better results in SEO I need to have the Title post H1 by default. I have more than a thousand entries.

    Please, give me a hand in a very easy language please?

    Thanks a lot,

    Marcelo

    Website: www.natura-medioambiental.com

    #60607
    Zed
    Cryout Creations mastermind

    @Wakachuli, post title in posts lists use the H2 tag (and the site title, if displayed, has the H1 tag). Post titles in single post sections use the H1 tag.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #60634

    Hi,
    https://www.natura-medioambiental.com/la-sobrepoblacion-y-el-medio-ambiente-desafios-ante-el-cambio-climatico/
    The title is well in H1 !

    But there’s no H1
    https://www.natura-medioambiental.com/
    He put a image or a logo, from the shot of H1

    #60640

    Thanks Zed and Wolfneo, so my title of the post has H1? Should I fix something? Thanks a lot for your help.

    Marcelo

    Website: www.natura-medioambiental.com

    #60641

    Hi,
    The homepage does not have an H1
    Maybe the author @Zed has a solution

    #61323
    Zed
    Cryout Creations mastermind

    The post title in a single post section uses the H1 tag.
    Post titles in a posts list (which the homepage is) use the H2 tag. On the homepage the H1 tag is used only by the site title (which natura-medioambiental.com does not display).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #61356

    hi,
    that’s the problem, is to have a logo and the title at the same time.
    If you want a logo, not possible to have the H1, not good, force yourself to have the title, without logo

    #70095
    naomi
    Power User

    Hello 🙂

    Using your Nirvana theme, I have checked the source code via CTRL+F and found that there is no <h1> tag. The title seems to be wrapped in the <title> tag only.

    Basically, the page starts with the <h2> tag for the page title.

    I am not using any logo, so I have checked the customizer and the Nirvana settings, on both pages the checkbox for displaying title and undertitle are checked.

    I am looking forward to your reply!

    Kind regards,
    Naomi

    #70097

    Hi,

    Without answer, I changed the theme.
    But cheched for displaying the title and undertitle, this will appear on the logo.
    and if we do not want the title and undertitle, on the image, we will have to use CSS of the blow, that’s it?

    #70098
    naomi
    Power User

    Hi Wolfneo,

    the Nirvana theme at least contains a header widget on the right side of the title. You could include your logo via a simple picture widget although it is not the best solution.

    Finding a CSS option does not sound very sufficient since the <h1> tag is HTML and since I also would rather tend to include a picture (a logo) with HTML. Yesterday, I saw an editor to check and/or edit “at your own risk” in the design section, called “editor” something. For some reason, it is not there anymore. Otherwise I would have checked if we could find a solution there.

    #70099

    Hi,
    Yes, for the header widget but it’s getting around the problem, not my way of doing it.

    @Wakachuli
    always has the theme, to see with him.

    For the CSS, I meant, that if you have to activate the display of the title and the undertitle, all this may appear on the image.
    So, you’ll have to use CSS code to hide the two lines on the image, like display: none.

    Thank you

    #70100
    naomi
    Power User

    Yeap, in this case I agree with you.

    I do not use any logo or anything like it. It is the missing <h1> tag although I activated the title (which I want to display btw.) that causes me troubles ^.^

    #70101

    What is the address of your site?

    #70102
    naomi
    Power User

    My address is earth-renewing.com. I am pretty new to WordPress and am currently setting up all necessities.

    #70103

    Do you have a child theme?
    Maybe can be changed
    <h2 class="entry-title"><?php the_title(); ?></h2>
    in H1
    in content/content-page.php

    #70104
    naomi
    Power User

    No, I am not using a child theme.

    I just checked the file you mentioned and found this:

    <?php <strong>if</strong> ( is_<strong>front_page</strong>() ) { ?>
    				<<strong>h2</strong> class="entry-title"><?php the_title(); ?></h2>
    			<?php } <strong>else</strong> { ?>
    				<<strong>h1</strong> class="entry-title"><?php the_title(); ?></h1>

    Then I checked my other pages which are not the front page … You just made me realize that there is nothing wrong with the theme, it is only the front page that does not have a <h1> tag :-)) Thank you!

    #70105
    #70106
    naomi
    Power User

    Thank you! I’ll definitely check it out!

Viewing 23 posts - 1 through 23 (of 23 total)

The topic ‘How to enable H1 tag in Tempera home page’ is closed to new replies.