• Resolved jmw894

    (@jmw894)


    Hi,
    I am trying to use WP-PageNavi for the navigation on a page but have not been able to find which file I need to add to my child theme or the line of code I need to change to get it to work properly.
    I saw that the Origami theme had a child theme that had the necessary included.
    Any advice would be appreciated.

    Many Thanks

    James

    • This topic was modified 6 years, 1 month ago by jmw894.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi James

    If you’re using a child theme you can try adding the following your child theme functions.php file:

    if ( ! function_exists( 'vantage_content_nav' ) ) :
    /**
     * Display navigation to next/previous pages when applicable
     *
     * @since vantage 1.0
     */
    function vantage_content_nav() {
    	wp_pagenavi();
    }
    endif;

    Alternatively, you can use a plugin like Code Snippets to add this customised function.

    Thread Starter jmw894

    (@jmw894)

    Many thanks for your help Andrew.

    Best wishes.

    James

    For sure 🙂 All the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP-PageNavi code in Child Theme’ is closed to new replies.