XF 2.1 Where can I edit main page template for custom HTML in the first and second break?

chillman

Member
Hello,

I want to integrate some HTML for an advertising Banner on my forum main site. So where I can edit HTML Code for insert a banner like marked on the screenshot after the "First Break" or the "Second Break"? How can I locate this areas?:

Bildschirmfoto 2020-01-19 um 12.36.38.png
 
Last edited:
Ok, but it is not possible to locate the "First Break" or the "Second Break" as I marked them in this screenshot. How can I locate this areas?

Bildschirmfoto 2020-01-19 um 12.36.38.png
 
Last edited:
That... I wouldn't know. Can only speculate that if you put multiple adverts in same location you can order them how you want. Someone with better knowledge than myself will be along with better answers later on.
 
Appearance->Styles->Your style->Templates->forum list

Find:
Code:
<xf:macro name="node_list" arg-children="!" arg-extras="!" arg-depth="1">
    <xf:css src="node_list.less" />
    <xf:foreach loop="$children" key="$id" value="$child">

Directly below add:
Code:
    <xf:if is ="$depth == 1">
        your google code here
    </xf:if>

Note that this will place an add above the first category as well.
 
Back
Top Bottom