[resolved] How to change the H1 tags ? (8 posts)

  1. reseo
    Posted 2 years ago #

    Hello Hello,

    I like Kvarken very much. But how can I change the H1 tags ?

    For example.. if you go to one of my posts... the H-Tags are spread out all over the place....

    my site: Better Pagerank

    The tree looks like that:

    <H1>: Pagerank verbessern
    <H2>: Pagerank verbessern – das absolute Killer Tool !
    <H2>: About admin
    <H2>: Recent Posts
    <H2>: Recent Comments
    <H2>: Archives
    <H2>: Categories
    <H3>: Leave a Reply Cancel reply

    as you can see I have lot's of <H-Tags>.

    - How and where can I change them ?

    I just don't want to have as many.. especially for the About admin, recent comments, archives, categories, and Leave a reply..

    Thank you so much for any little help !

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you already created a child theme?

  3. reseo
    Posted 2 years ago #

    Yes.. I did.. but I still can't figure out which code in which file I have to change ?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    What page do you want to change the tags on?

  5. kreativito
    Posted 2 years ago #

    it should be in the stylesheets, right ?

  6. reseo
    Posted 2 years ago #

    So this is my site: Pagerank steigern

    Within WordPress it's actually a post, not a page.
    However, I just don't know how to change or control the H-Tags ?

    I was looking in the css files, but was not able to identify and find anything like that.

    Thank you so much for any little help,
    I really appreciate that !

  7. Carolina Nymark
    Theme Author

    Posted 2 years ago #

    the stylesheet can only change the styling of the tags, not where they are printed out. :)

    If you look at single.php, that controls the posts, you will see it
    includes the following:
    <h1 class="post-title"><?php the_title(); ?></h1>
    but also this function: kvarken_meta.
    the kvarken_meta is in the inc/customizer.php file.
    You will find that this in turn uses kvarken_author,that prints out the h2 tag around "About..."

    The h2 class for the titles in the sidebar are actually printed by WordPress core. They can be overwritten, see http://codex.wordpress.org/Function_Reference/register_sidebar

  8. reseo
    Posted 2 years ago #

    Thank you very much - that's awesome. You made my day.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic