chojo

Customer
Hi,
My forum is set to a boxed layout, and I’d like to add a top bar that sits outside of it, spanning the full width, just like the staff bar.

Could you help me with this customization? I'm using the Bolt theme.
Thanks!
 

Attachments

  • example.png
    example.png
    28.2 KB · Views: 5
For this, you'll need to edit PAGE_CONTAINER.
Ctrl-f inside of the editor and look for:

Code:
<xf:macro id="top_bar" arg-searchConstraints="{$searchConstraints}" />

I like putting comments around code versus deleting it (easier for me to view outdated templates and what is intentional).

Wrap that conditional with a xf:comment:

Code:
    <xf:comment>
    <xf:if is="property('xbTopBar')">
        <xf:macro id="top_bar" arg-searchConstraints="{$searchConstraints}" />
    </xf:if>
    </xf:comment>

Then just some lines above find:
Code:
<div class="xb-page-wrapper{{ property('xbForumStyle') == 'canvas'  ? ' xb-canvas' : '' }}{{ (!is_toggled('canvasMenu') AND property('xbCanvasCollapse')) ? ' xb-canvas-menuActive' : '' }}{{ !property('xbCanvasCollapse')  ? ' xb-canvasNoCollapse' : '' }}">

Add right above:

Code:
    <xf:if is="property('xbTopBar')">
        <xf:macro id="top_bar" arg-searchConstraints="{$searchConstraints}" />
    </xf:if>

Final edit will look like this:
1773953767743.png
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back