Custom code hook

Posted in: Newsmag
Post count: 3

Hello, is possible to add specific code in specific part of the website?
If i want to add for example the google analytics code in the head of body is possible?

If i need to add native advertising code at the end of article is possible?
Or even more specific part like after post title?

Thank you

  • This topic was modified 10 years by mattebox.
Post count: 6535

Hi

To add the code in head you need to edit the header.php file and paste our code here: http://screencast.com/t/7aaHtLY3hHa
You can add an ad code under post title by editing the loop file corresponding with the post template used and the adspot shortcode here: http://screencast.com/t/uA5zQ5AY

echo do_shortcode('your shortcode ad');

To get the shortcode add an ad box into a blank page then switch in backend editor copy and paste this code: http://screencast.com/t/Kcqsjk9C7xbU inside do_shortcode function.

Hope this help!
Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.