• Hi I have a problem with this theme.
    Take a look on this screen:
    https://i.imgur.com/xlXKmSw.jpg
    There is something wrong with header on other pages than home.
    It shouldn’t show a title of 1st post on this page. There should be a info where I am (for example I’m on page 2, so it should print PAGE 2 or something like this).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pw

    (@rscpl)

    I found a souluton.
    header.php :

    replace:

    echo '<h1 class="entry-title">';
    the_title();
    echo '</h1>';

    with:

    $current_page = max( 1, get_query_var('paged') );
    $total_pages = $wp_query->max_num_pages;
    echo '<h1 class="entry-title">';
    echo 'Page '.$current_page.' of '.$total_pages;
    echo '</h1>';

    I’m not a PHP coder, so I don’t know whether it is optimal or not, but it is working.

    EDIT:
    OK it IS working, but it breaks titles inside posts.
    Any ideas?

    how to break the description paragraph line in slider caption

    Thread Starter pw

    (@rscpl)

    bump ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header error on /page/*’ is closed to new replies.