ravi.xandy Posted January 3, 2014 Share Posted January 3, 2014 How can I insert the google adsense module inside a custom div tag? thanks in advance. 1 Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 you can use this simple code: <div id="myadsesnediv"> YOUR ADSENSE CODE HERE </div> 1 Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 3, 2014 Author Share Posted January 3, 2014 I've installed google adsense module and i've pasted my adsense code in Google Adsense -> Settings. So the result is, ads are displayed. But I want that module to be displayed inside my custom div tag. So that whenever the admin changes the code in admin settings i.e, "Google Adsense -> Settings" it must be updated in the page. I'm a newbie to prestashop. Please help me. Thank you for the response. Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 ok thank you for clarification. i know what to do in this case, but before i will write solution i must ask about your module. you use default google adsense module? Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 23, 2014 Author Share Posted January 23, 2014 Yes. Sorry for late reply. Module Name: Google Adsense. Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 23, 2014 Author Share Posted January 23, 2014 Yes. Sorry for late reply. Module Name: Google Adsense. Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2014 Share Posted January 23, 2014 it's not a part of default installation :| from where you downloaded it? Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 23, 2014 Author Share Posted January 23, 2014 One of the zip files provided in the forum Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 23, 2014 Author Share Posted January 23, 2014 do you want me to be more specific? Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2014 Share Posted January 23, 2014 and where i can download it? what forum part? i have to check exactly the same module that you use Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 24, 2014 Author Share Posted January 24, 2014 gadsense.zip Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 thank you it's weird module, it doesn't use template file to include code! function hookHome($params) { $output = html_entity_decode(Configuration::get('GADSENSE_ID'), ENT_COMPAT, 'UTF-8'); return $output; } what prestashop version you use? i have to test it on exact version Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 25, 2014 Author Share Posted January 25, 2014 okay. I use prestashop_1.5.6.1 Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 ok i see how the module works you have to paste there your google analytics code so paste it with code: <div id="mydiv"> CODE HERE </div> Link to comment Share on other sites More sharing options...
ravi.xandy Posted January 27, 2014 Author Share Posted January 27, 2014 ok. thank you for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now