• Hi,

    I’d like to use the employees page provided by the theme to show my employees (i renamed the employees slug to ‘people’) rather than create my own page, since adding a new employee would see it automatically added to the page. However the navigation bar is in a really awkward position, located right after the 10th employee. Is there a way to move the navigation bar to the bottom and center it? Or better yet, would it be possible to show all of the employees one one page, eliminating the need for the navigation bar?

    Thanks a lot ??

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello there,

    To fix improper pagination’s location, try adding this CSS code to Appearance > Customize > Additional CSS from dashboard.

    
    nav.pagination:before {
      content: '';
      display: block;
      width: 100%;
      clear: both;
    }
    

    To show all entries, you’d need to add the below snippet to your child theme’s functions.

    
    function sydney_child_modify_peope_archive( $query ) {
      if ( is_post_type_archive('people') && $query->is_main_query() && ! is_admin() ) {
        $query->set( 'posts_per_page', -1 );
      }
    }
    add_action('pre_get_posts','sydney_child_modify_peope_archive');
    

    If you don’t want to run a child theme, alternatively you can use a plugin that allows the same purpose like the Functionality.

    Regards,
    Kharis

Viewing 1 replies (of 1 total)
  • The topic ‘Employee page navigation bar’ is closed to new replies.