Add code to header/footer


With the help of blocks, adding any code to header/footer in Codoforum is very easy.
This is very useful when you want to add any analytics code for example. 'google analytics'

Step 1

Open backend -> UI Elements -> Blocks

Step 2

Create a new block by clicking 'Add block' button.

Step 3

Give any name to the block.
Set the Block region as block_head if you want the code to load in the header.
Set the Block region as block_footer if you want the code to load in the body.
Keep the Block output option as 'HTML'
Copy paste your HTML in the textarea given.
Click on 'Save' button

Step 4

Refresh your webpage and see if the code is running.

forum block code html

© CODOFORUM 2018. All Rights Reserved.