Skip to content

Enable sticky navigation tabs for index page only #7157

Discussion options

You must be logged in to vote

Thank you for your quick response. I've had a shot at modifying the config with the following:

{% block config %}
  {% with features = features + ['navigation.tabs.sticky'] %}
    {{ super() }}
  {% endwith %}
{% endblock %}

The "skeleton" of the sticky navigation tabs load in, however some client JavaScript is immediately hiding it on page load, leaving just the coloured background element.

Doing a bit of rather hacky debugging by throwing {{ app }} directly into the original base.html file, it showed that navigation.tabs.sticky wasn't being added correctly. Trying again using set features didn't work either, and my rudimentary Jinja2 knowledge isn't good enough to figure out the most el…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThatOtherAndrew
Comment options

Answer selected by ThatOtherAndrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants