craigForo Active member Dec 22, 2017 #1 What would the condition be to show an ad on the main page only?
craigForo Active member Dec 22, 2017 #2 I should add that I used this code, and it did not work. <xf:if is="$template != 'forum_list'"> Show content... </xf:if> Upvote 0 Downvote
I should add that I used this code, and it did not work. <xf:if is="$template != 'forum_list'"> Show content... </xf:if>
P Paul B XenForo moderator Staff member Dec 22, 2017 #3 If you use the forum overview top or bottom ad position, it will only show on the forum index. Upvote 0 Downvote
craigForo Active member Dec 22, 2017 #4 Brogan said: If you use the forum overview top or bottom ad position, it will only show on the forum index. Click to expand... Outstanding! Thank you. Upvote 0 Downvote
Brogan said: If you use the forum overview top or bottom ad position, it will only show on the forum index. Click to expand... Outstanding! Thank you.
P Paul B XenForo moderator Staff member Dec 22, 2017 #5 Also, if you use any other ad position, you can use: Rich (BB code): <xf:if is="$__globals.template == 'forum_list'"> Content here </xf:if> Change forum_list to the template as required. Upvote 0 Downvote
Also, if you use any other ad position, you can use: Rich (BB code): <xf:if is="$__globals.template == 'forum_list'"> Content here </xf:if> Change forum_list to the template as required.
A Andy.N Well-known member Dec 28, 2017 #6 Where would I add the javascript from google? In XF 1.5, it's in page_container_js_head template. Upvote 0 Downvote