Jump to content

Featured Replies

Posted

I was able to find the header, footer and Body portions in the theme editor, but opther than doing custom CSS, I don't see how to add code that I'm getting from my new advertising network.

They need me to put code in the Header and body.

How do I add that code in now? Can we still use the advertising spaces to add code?

  • Community Expert

If you mean the "head" of an HTML document rather than the header, you can utilize theme hooks in order to do this. You can access these in ACP -> Customization -> Themes -> enable design mode -> on your theme, click the down arrow and add theme templates -> choose theme hooks.

If you need to place it in the Header and/or Footer, you can just edit your Theme and click Header/Footer which will allow you to add HTML/CSS/JS to both.

  • Author

Jim, I think you confused me even more.

They told me I need to put code in my header and body for the ads to work.

I used the theme editor but when I go into header or body, the only thing I see is to adjust the CSS.

I just need to place code into my header and body, which I assume if where my current Good adsense code is in which is in the old advertisement space.

  • Author

When I get to themes, I have the old view:

image.png

Ok, I can see how to add the code to the header, how do you do the body throughout the boards?

Do I just use the old advertising spaces and put the code where the google adsense code is?

  • Community Expert

I am not a Google AdSense expert so, unfortunately, I cannot advise you on their platform. Typically though, with Javascript like this, you would place the header script globally and then the body script where you want the item to appear. Hope that helps.

@tpasa Just put the header code you have been given in the Header Ad location in Advertisements. Then you can set up ad locations with the other code.

  • Author
42 minutes ago, LemonGrenade said:

@tpasa Just put the header code you have been given in the Header Ad location in Advertisements. Then you can set up ad locations with the other code.

Is that "just below the header" location?

Just now, tpasa said:

Is that "just below the header" location?

Yep, that's fine.

Recently Browsing 0

  • No registered users viewing this page.