Change next/previous post links places
-
Hay everybody. I want to switch next/previous post buttons position. Previous post should be on the right side, while the next post should be on the left side.I have looked in the wordpress codex and found the code located in my template-tags.html. I tried to change the code(in child theme), I have switched code position, switched the next/previous words in code, but nothing happens. I have even edited the code in main theme since the site is new, I don’t care if it crashes.
I am using Sparkling theme. Here is the code that is torturing me:<nav class="navigation paging-navigation" role="navigation"> <h1 class="screen-reader-text"><?php esc_html_e( 'Posts navigation', 'sparkling' ); ?></h1> <div class="nav-links"> <?php if ( get_next_posts_link() ) : ?> <div class="nav-previous"> <?php next_posts_link( __( '<i class="fa fa-chevron-left"></i> Older posts', 'sparkling' ) ); ?></div> <?php endif; ?> <?php if ( get_previous_posts_link() ) : ?> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <i class="fa fa-chevron-right"></i>', 'sparkling' ) ); ?> </div> <?php endif; ?> </div><!-- .nav-links --> </nav><!-- .navigation --> <?phpIf anybody has any idea, please help.. my site is alfawebstudio . com
The topic ‘Change next/previous post links places’ is closed to new replies.