I have prepared something simple for you, hope it fulfills your wishes.
Instructions
In the
PAGE_CONTAINER
template, find this code block:
HTML:
<div class="p-nav-smallLogo">
<a href="{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}">
<img src="{{ base_url(property('publicLogoUrl')) }}" srcset="{$srcset}" alt="{$xf.options.boardTitle}"
width="{{ property('publicLogoWidth') ?: '' }}" height="{{ property('publicLogoHeight') ?: '' }}" />
</a>
</div>
Just below it, add the following code:
HTML:
<div class="p-mobile-nav">
<xf:foreach
loop="$navTree"
key="$navSection"
value="$navEntry"
i="$i"
if="{{ $navSection != $xf.app.defaultNavigationId }}"
>
<xf:if is="$navSection === 'mobile_ad'">
<div class="p-navgroup-link">
<xf:macro
name="nav_entry"
arg-navId="{$navSection}"
arg-nav="{$navEntry}"
arg-selected="{{ $navSection == $pageSection }}"
arg-shortcut="{$i}"
/>
</div>
</xf:if>
</xf:foreach>
</div>
Then in your
extra.less
template, add the following code:
CSS:
.p-nav-list [data-nav-id='mobile_ad'] {
display: none;
}
.p-nav-smallLogo {
/* Only if you want to hide the logo. */
display: none !important;
}
.p-mobile-nav {
display: none;
align-self: center;
}
.p-mobile-nav a {
text-decoration: none !important;
}
@media (max-width: 650px) {
.p-mobile-nav {
display: block;
}
}
Finally, add your navigation from
admin.php?navigation/
as normal. You only need to set its ID as
mobile_ad
.
That's it. Of course, there is more than one way to achieve this, but this should be enough for you.
Let me know if there are any problems.