elementor / hello-theme

A plain-vanilla theme, best suited for building your site using Elementor plugin. This theme resets the environment and prepares it for smooth operation of Elementor.
https://elementor.com/hello-theme/
572 stars 225 forks source link

Bug Report: Prev/Next arrows mixed up on search results page when using Hello Theme without Elementor Pro search results template #404

Closed ur-krostitzer closed 4 months ago

ur-krostitzer commented 5 months ago

Hi there,

when using the Hello Theme's default search.php template part without using an Elementor Pro search results template the prev/next buttons are mixed up (previous takes me to the next page and vice versa).

The code causing this is in /template-parts/search.php starting on line 53:

<nav class="pagination">
    <?php /* Translators: HTML arrow */ ?>
    <div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
    <?php /* Translators: HTML arrow */ ?>
    <div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
</nav>

Honestly I don't believe that anyone hasn't noticed this before so I'll just hope this is not intended.

Thank you for your time.