Return to Support
Home › Forums › Graphene WordPress theme › Support › How can i add adsense to the background image
can you tell me if it is possible to add anything outside the confines of the layout i have chosen.
I would like to add adsense to be displayed over the background image i have chosen for my site http://www.the4thofficial.co.uk.
is it possible to do this ?
You can insert the adsense code by hooking it to the wp_footer action hook. Then position it using CSS absolute positioning.
WordPress action hook:
CSS absolute positioning:
i’m not very skilled in changing any of the codes..
can you help me out here…
I achieved something very similar using only a header widget and custom CSS. Look at my site.
Here is the custom CSS, which controls the positioning of the header widget:
Then, enable the header widget, drag a text box onto it in the widget panel, and paste your adsense code into it. Save, and then view your site. It should be there.
All done with no child theme, and no digging into PHP. It works! Try it!
+1 on Ken’s suggestion.
You must be logged in to reply to this topic.
Made with by Graphene Themes.