In XenForo, templates can contain HTML or CSS code along with a wide range of template Syntax like if conditions, foreach syntax, contentcheck etc.
XenForo’s default style provides 19 ad locations. Here is the visual guide to how each one of them is placed.
The complete visual guide to the position of each XenForo hook for header, footer as well as the forum_list, forum_view, thread_view and member_view pages
XenForo hooks are code snippets inside XenForo templates to execute any code in PHP via a plugin or template_hook event listener
To show ads only on the homepage can vary based on how you wish to show them – using an ad manager addon or by modifying the template. Let me share both.