Hiding “Previous Post” Navigation in Elementor with Custom CSS

9 months ago

2 min read

Posted by:

Focus

Subscribe to newsletter

By subscribing you agree to with our Privacy Policy.

Share

Hi, there! I’ll share some quick tips on how to change the appearance of article navigation on your Elementor website. We’ll be using CSS code – don’t worry, it’s not as complex as you think, and I’ll help you step by step. So, let’s get started!

There are several examples of CSS code that we will use to achieve the effect we want. Here is the complete set of CSS code you need to add:

/* Hide the 'Previous Articles' button' */
div.elementor-post-navigation__prev {
    display: none;
}

/* Changes the width and uses unlimited whitespace */
.elementor-post-navigation .elementor-post-navigation__link {
    width: 100%;
    white-space: unset;
    overflow: visible;
}

/* Adjusting the placement of the 'Next Article' link */
.elementor-post-navigation .elementor-post-navigation__next a {
    justify-content: left;
}

/* Setting text flow on 'Next Article' link */
.elementor-post-navigation span.elementor-post-navigation__link__next {
    text-align: left;
}

After adding this CSS code, your article navigation will look cleaner and neater. The following is a brief explanation of the code:

  1. The first code will hide the ‘Previous Article’ button in your article navigation.
  2. The second code will change the width and create unlimited white space in the article title, so it looks neater.
  3. The third code will adjust the placement of the ‘Next Article’ link , positioning it to the left of the display.
  4. The fourth code will set the text flow on the ‘Next Article’ link to the left position.


Try some of these tricks, and make your Elementor site look even more attractive! Hope it is useful! Don’t forget to always test your changes to make sure everything works as expected. Keep monitoring this blog for other interesting tips and tricks about the world of web design, about Elementor, and more. Good luck! 😊

Read more

Global

2 min read

Disabling the Device’s Default ‘Dark Mode’ in WordPress

If you are trying to convert your WordPress website to APK / AAB, you may need to disable the device’s

Read more

Post Widget

2 min read

How to Make Post Widget’s White Space Clickable (+Popup)

Go to Dashboard > Elementor > Custom Code. And then add this code to make the whole space/box/card of the

Read more

Troubleshoot

< 1 min read

How to Fix Favicon Not Showing on WordPress Multisite

In some cases, sub-sites on multisite is not showing the favicon. To assign favicon for each site on WordPress multisite,

Read more

Video

< 1 min read

How to Make Play Icon on Image Overlay Smaller (Elementor Video Playlist Widget)

If you activate the image overlay, there is an option to show play icon. And the default play icon for

Read more

See How It Works

Create better websites, faster.

Download the Entire Library

Adaptative, neutrally designed components.

Customer Service

Focus Website

Today, July 27

Hi, there 👋

How can I help you?

Start Chat with:

We use cookie to improve your experience on our site. By using our site you consent cookies.