Replies: 1 comment
-
{% assign link = Model.ContentItem.Content.LinkMenuItemPart %} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As there is no template for Content Menu Items in The Agency Theme it does not add the bootstrap attributes, so these items do not render in the same way as Link Menu Items.
I added the following template which resolves the display issue but it does not retrieve any url [empty value]:
[file: MenuItemLink-ContentMenuItem.liquid]
{% assign link = Model.ContentItem.Content.ContentMenuItemPart %}
<_a class="nav-link js-scroll-trigger" href="{{ link.Url | href }}">{{ link.Name }}</_a>
(Ignore the _ before the a tag. Only way I know to avoid it rendering as HTML in this post)
Can someone point me to the correct way to retrieve the url from a ContentMenuItem?
Any help will be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions