XF 2.3 Looking to Add a Header Image Above the Nav Bar

I'm ready with the code and I looked in the page container but no luck on where to put it.
Here's a standard usage pattern for putting a logo/header like those examples:

ACP > Appearance > Style Properties > [Choose Your Style] > Scroll down to "Header/Logo row" ... See example image below. You can upload the image you want from the "Image" input area. The CSS/LESS section can be used to further fine tune how to handle the image.

1763622412642.webp
 
You need to play with the PAGE_CONTAINER, I modified it there so I can customize further to our needs:

Look for this part:
Code:
<xf:set var="$srcset">{{ property('publicLogoUrl2x') ? base_url(property('publicLogoUrl2x')) . ' 2x' : '' }}</xf:set>

<header class="p-header" id="header">
    <div class="p-header-inner">
        <div class="p-header-content">

            <div class="p-header-logo p-header-logo--image">
                <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>

            <xf:ad position="container_header" />
        </div>
    </div>
</header>

Save a copy of the original code, then play with it to see how you'd like it customized.
 
You need to play with the PAGE_CONTAINER, I modified it there so I can customize further to our needs:

Look for this part:
Code:
<xf:set var="$srcset">{{ property('publicLogoUrl2x') ? base_url(property('publicLogoUrl2x')) . ' 2x' : '' }}</xf:set>

<header class="p-header" id="header">
    <div class="p-header-inner">
        <div class="p-header-content">

            <div class="p-header-logo p-header-logo--image">
                <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>

            <xf:ad position="container_header" />
        </div>
    </div>
</header>

Save a copy of the original code, then play with it to see how you'd like it customized.
here I think

Screenshot 2025-11-20 at 12.05.26 AM.webp
 
Back
Top Bottom