WordPress.org

Ready to get started?Download WordPress

Forums

Change location of page numbers (7 posts)

  1. Nameless_Dream
    Member
    Posted 10 months ago #

    Hi everybody,
    I have a problem with the page numbers in the multi-page posts. The numbers appear after the share buttons and related posts. How can I put them just after the content of the article?
    Here you can see what I mean.

  2. vestimir
    Member
    Posted 10 months ago #

    Здрасти :)

    I suppose you need to move things around a bit inside your template code for post.php. Just make sure that locate any of the pagination functions located here https://codex.wordpress.org/Pagination in the post.php and move the whole block upwards above the sharing block.

  3. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    @vestimir -

    I suppose you need to move things around a bit inside your template code for post.php.

    What happens when the theme is updated?

  4. vestimir
    Member
    Posted 10 months ago #

    @WPyogi: You do have a point. Is there any proper way of doing this, maybe adding a specific filter?

  5. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Using a child theme is generally the way to make changes to theme files - http://codex.wordpress.org/Child_Themes

    @Nameless_Dream - I'd actually suggest that you ditch that theme ASAP - it's not released under the GPL licensing requirements of WP - so it's not supported here at all. Here's more info on why - http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/

    In any case, these forums only provide theme-specific support for themes from here:

    http://wordpress.org/themes/

  6. vestimir
    Member
    Posted 10 months ago #

    @WPyogi - 10x it's good to learn good practices :)

  7. Nameless_Dream
    Member
    Posted 10 months ago #

    Здравей Вестимир,
    Paginatiion блока го намерих в post-single.php и post-page.php. Но не намерих блока за шерване.

    <?php
                    the_content('');
                    wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
                ?>

    Това е блока, който намерих. Какво означава това, че номерата на страниците трябва да се показват точно след съдържанието ли?

Reply

You must log in to post.

About this Topic

Tags