Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Res2

    (@res2)

    In other words: all the other pages have their titles and written texts appear – why not the page with the post index, too?

    I’d like to make a few static comments on that page, before the list begins. Where or how might I make such comments appear before the ul index begins?

    Hi Res2,

    Don’t know if this will help. You could create a child theme and add this to your template:
    <h2 class="h2 entry-title"><span><?php echo get_the_title(); ?>/span></h2>

    Thread Starter Res2

    (@res2)

    Hi MrYawn

    It’s an interesting code, and thank you for presenting it, but which file should I add it to? Do you know?
    Thing is, it should only appear on the top of the post index.
    I’m having trouble locating it in the php files…

    I’ve made a child theme before making any adjustments, and would of course copy any file to it, that I wished to make lasting changes to.

    Theme Author nobita

    (@nobita)

    Create file

    Child Theme/hook-prepend-loop.php

    and write below

    <h1>Artikler</h1>

    Thank you.

    Thread Starter Res2

    (@res2)

    Awesome! Many thanks,nobita. ??

    I have no idea how or why that worked, but it did.
    Specifically, I wrote:

    <div class="artikeltitel"><h2 class="h2 entry-title">
    <span>Artikler</span>
    </h2></div>

    in the otherwise empty hook-prepend-loop.php added to my child-theme, in order to get the same title format as the rest, as well as a div box to push around/place properly in css.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header title on the blog list page’ is closed to new replies.