How to pin an article in a Joomla blog?

How to pin an article in a Joomla blog?

When you run a blog, it can happen that you want (or need) to highlight a particular article. And for that, the best is to pin this article so that it remains displayed at the top of your blog, even if new articles are published. Here's how to do that with Joomla.

How to pin a blog post to the head of your blog in Joomla?

In the rpesent case, here is what we want to achieve:

  • pin an article to the head of the blog
  • be able to continue posting new content without changing the pinned article
  • be able to choose the article to pin among all the articles of the article manager
  • use only native Joomla functions

The setup

Now, we will see in detail what are the different steps that allow us to reach the initial objective.

1. Creation of categories and articles in Joomla

To have a blog and well-organized contents, you need to have a good structure of the categories.

Let's start by creating a first parent category and as many child categories as necessary.

Create categories in Joomla

Everything is in order, we can now add our content in the different categories of our blog.

2. Creation and configuration of the menu item

To display our blog, we need to create a Category blog menu item and we select the parent category that we have created previously.

Create category blog menu item in Joomla

We are now going to configure our Category blog menu item with few native Joomla options.

  • Category tab

    Here, we hide the subcategories texts

    Then, we select None for the subcategories level parameter.

    Category tab menu item in Joomla

  • Blog display tab

    Here, we select one leading article (this will be our pinned article)

    We also add All the subcategories.

    Onglet blog lien de menu blog dans Joomla

    For the article order parameter, we select Featured Articles Order.

    Onglet blog lien de menu blog dans Joomla

    And then, we choose to display the featured articles.

    Onglet blog lien de menu blog dans Joomla

3. Select and display our pinned article

Now, let's open the Joomla article manager and filter to only have articles published in the categories of our blog.

Thanks to the settings we just setup, we just have to feature the article we want to pin to the header of our blog.

Mise en vedette d'un article dans Joomla

Et voilà, it's done ! If you have followed all the steps in this guide carefully, you should get the desired result:

Article épinglé en-tête de blog dans Joomla

Conclusion

Here you are, you have successfully pinned an article so that it remains displayed at the top of your Joomla blog. This configuration is very simple to achieve because Joomla is a CMS which natively has functions and capacities much superior to many other comparable tools.

As usual, if this article has been useful to you, please do not hesitate to share it and if you have any questions, the comments below are waiting for you.

Daniel Dubois

Daniel Dubois

Passionné par le Web depuis 2007, Daniel défend la veuve et l'orphelin du web en créant des sites respectueux du W3C. Fort d'une expérience de plusieurs années, il partage ses connaissances dans un état d'esprit open source.
Très impliqué dans la communauté Joomla depuis 2014, il est actif au sein de plusieurs projets, conférencier et fondateur du JUG Breizh.