Support » Theme: Basic » How to remove the page numbers on the homepage.

  • Resolved jc26

    (@jc26)


    Hello,

    How do I remove the page numbers and prev/next buttons from the homepage.

    Thanks.

Viewing 1 replies (of 1 total)
  • Theme Author WP Puzzle

    (@wppuzzle)

    1. Setup and activate child theme
    2. Copy index.php from parent (basic) theme
    3. Replace 15-19 strings with:

    
    if ( ! is_home() ) {
    	the_posts_pagination( apply_filters( 'basic_posts_pagination_args', array(
    		'mid_size' => 2,
    		'prev_text' => __( '« Prev', 'basic'),
    		'next_text' => __( 'Next »', 'basic'),
    	) ) );
    }
    
    • This reply was modified 2 years, 11 months ago by WP Puzzle.
    • This reply was modified 2 years, 11 months ago by WP Puzzle.
Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the page numbers on the homepage.’ is closed to new replies.