PDA

View Full Version : Adsense in CMS Widget


alaska_av8r
02-29-2012, 03:51 AM
I am trying to place adsense advertisements on the front page of my CMS. I am using a 180px, 100%, 240px layout for the front page. I did a html static widget that sits right below my sections navigation widget. You can see it here https://vborg.vbsupport.ru/external/2012/02/3.gif

The problem is that the google adsense is 160 px wide and this looks really goofy in that widget. So to make it look better can I:

1. put an advertisement on the sidebar without using a widget?

2. as it appears if I edit the styling it will affect all static html widgets which I don't want it to do, so can I create a widget call advertising widget with its own styling?

3. I think a widget that was transparent with minimal padding and no title would be perfect.

thanks
tim

kh99
02-29-2012, 03:59 AM
If you go to vbulletin CMS -> Widgets and click on "configure" next to your widget, at the bottom there's a Template Name field that probably says 'vbcms_widget_static_page'. You could copy the vbcms_widget_static_page template code to a new template, enter that new template name on the widget config page, then edit that template to look the way you want.

alaska_av8r
02-29-2012, 04:15 AM
Thank you thank you thank you, that sounds like what I want. I will likely have more questions since I have never copied templates before.

kh99
02-29-2012, 04:17 AM
I don't know that there's any copy function, I think you just have to select all the code, copy it (to the clipboard), then create a new template and paste it.

alaska_av8r
02-29-2012, 10:30 AM
Thanks again kh99 I got it working.