WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. reseo
    Member
    Posted 7 months 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>:
    <H1>: Pagerank verbessern
    <H2>:
    <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
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Have you already created a child theme?

  3. reseo
    Member
    Posted 7 months ago #

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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    What page do you want to change the tags on?

  5. kreativito
    Member
    Posted 7 months ago #

    it should be in the stylesheets, right ?

  6. reseo
    Member
    Posted 7 months 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
    Member
    Theme Author

    Posted 7 months ago #

    Hi,
    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
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic