πFooter Tags
Last updated
Last updated
The Reporter supports footer categories list customization. You can display tags and pseudo-sub-tags instead of tags with posts inside your website's footer. Ghost CMS doesn't have subcategories (or tags), but we can do something like subcategories for the footer menu. For example, we have tag 'Economics' and more tags like 'Economics News', 'Country Economics', 'Economics Guides' etc. So we can make our footer menu like this:
So now it looks like we have the main category (tag) - 'Economics' and its subcategories, but actually each of that category is just a separate tag.
When adding a category (tag) and subcategory to the footer menu, use the tag slug instead of the name. You can find the tag slug on the main page of Ghost Admin in the Tags section.
Open default.hbs
file, it look like this:
Uncomment {{>footer-with-subcategories}}
and comment {{>footer-with-posts}}
, like on screenshot below:
Then, open footer-with-subcategories.hbs
file, it looks like this:
You'll see {{!-- Add categories with subcategories HERE --}}
comment with one of the footer category example
Now, simply copy the example and insert your tag slug inside the category="..."
attribute and pseudo-sub-subcategories inside the subCategory="..."
attribute, like this:
Thats' it! Well done!