How To Highlight New Posts For Returning Visitors In WordPress?

You can highlight new blog posts for returning visitors in your WordPress site. For Example: When a visitor returns to your website, he will be seeing the new posts (that were published after his most recent visit) in highlight. All highlighted posts displays a ‘NEW’ label appended to their title.

It’s a great way to help your users/visitors to easily find new content in your website and increase your pageviews.

Highlight New Posts

All you have to do is install and activate Highlight New Posts plugin by Danny Van Kooten  and that’s it.

You can change the styling of the “NEW” tag by targeting the .post .higlight-new element.

.post .highlight-new { background: black; color: white; }

You can either add this in your child theme or use some custom CSS plugin like Jetpack’s Custom CSS module or any other custom CSS plugin like My Custom CSS & Simple Custom CSS plugin etc.

You can also change the complete post styles, the plugin adds a .highlight class to all new posts. Using .highlight class you can easily change the styling of new posts on your website.

For Example: To change the text color of new posts to red use:

.highlight { color: red; }

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.