Displaying navigation for a single post in WordPress – lesson 21

In this tutorial, we'll talk about how to navigate between posts., if you are on record (template single.php).

First, open the single.php template and add to the template code, to the right place navigation code.

wordpress next privios navigation - курсы по woordpress

 

Code for inserting navigation into the template:

After adding the navigation code, we need to make it beautiful and add styles to the /wp-content/themes/my_theme_tmp/css/style.css file.

For a beautiful display of arrows, we need to upload two images to the /wp-content/themes/my_theme_tmp/images/ folder… .

Images for navigation:

zip wordpress theme archive

Before navigation styling:

next privios navigation without style - wordpress courses

After styling the navigation:

wordpress next privios navigation with style - wordpress courses

That's all there is to it, as we see, our favorite content management system has long taken care of that, so that developers do not have to write navigation with the name of the previous and next article from scratch.

Good luck in learning and developing user-friendly and beautiful sites, and from me, as always, the source code of the topic at the moment.

zip wordpress theme archive

In the next lesson, we'll look at, how to make templates for pages and create a site menu.


Buy WordPress hosting
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal