Support » Theme: Sydney » WP-PageNavi

  • Resolved fullgen

    (@ulgenll)


    EN:
    Hello, I would like to install the WP-PageNavi plugin or some similiar plugin, but I can not find it or I am not able to find the navigation code to replace it with the plugin.

    ES:
    Hola buenas, me gustaría instalar el plugin WP-PageNavi o algún plugin similiar, pero no encuentro o no soy capaz de encontrar el código de navegación para sustituirlo por el del plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    Once the WP-PageNavi is active, you’ll need to replace the default page navigation function which is called in some template files with wp_pagenavi() function as suggested in this documentation. To do so, you’ll need a child theme, so that the modification will remain whenever you update the theme in future. Please follow the below steps:

    1. If you haven’t yet run a child theme, install and activate our premade Sydney child theme.
    2. You’ll need to copy these files from parent theme to child theme folder.

    
    * archive-employees.php
    * archive-services.php
    * archive.php
    * home.php
    * index.php
    * search.php
    

    So in your child theme, you’ll have:

    
    * sydney-child/archive-employees.php
    * sydney-child/archive-services.php
    * sydney-child/archive.php
    * sydney-child/home.php
    * sydney-child/index.php
    * sydney-child/search.php
    

    3. Open those files with your preferred code editor program. Find this line <?php the_posts_navigation(); ?> in each file, and replace it with:

    
    <?php wp_pagenavi(); ?>
    

    4. Save changes. Then install and activate the child theme.

    Regards,
    Kharis

    EN:
    Many thanks! 😀
    I was already a little desperate, because I changed the code a little intuitively but could not find the site.
    You’ve been very clear and precise. Many thanks 🙂

    ES:
    Muchísimas gracias! 😀
    Estaba ya un poco desesperado, pues cambiaba el código un poco por donde intuia pero no daba con el sitio.
    Has sido muy claro y preciso. Muchísimas gracias 🙂

    You’re welcome!

    Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

    Regards,
    Kharis

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