The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Static HTML Widget Background Style? - CMS
Hi Guys,
Im trying to insert 2 seperate static HTML widgets into my CMS (one at either side). these have to contain a clickable banner of 200x400px. Ive managed to get the widget to show the image ok (although it seems too wide and altering the grid width to make the centre column wider, and each outer column narrower results in one of the ads being put underneath everything?). However, I can't find the stylevar that controls the background, and the border of the HTML widget? when I look at it in firebug it seems to point each one to: <div class="cms_widget"> <div class="block"> <div class="cms_widget_header"> <div class="cms_widget_content widget_content"> <div align="center"> <a target="_blank" href="http://www.vivapotenza.com/"> <img ;"="" src="http://www.mini-fondos.com/fondo.php?pic=fondos/vehiculos/320x480/autos_006.jpg&size=200x400""> </a> (that is not the correct link or image I will be using, I just cherry picked something of the correct dimensions to prove it out, and inserted a web link to make sure that works correctly as well) I cant seem to find cms_widget_content or widget_content anywhere though, nor can I find any stylevar associated with it to change the colour. Can anyone point me in the right direction? Thanks for any help. Mick |
#2
|
||||
|
||||
You only want to change the background of those two widgets? If so, you will need to write some custom code and possible modify the template to add your own custom class to it.
|
#3
|
|||
|
|||
yes, all I want is to be able to set/change the background of these widgets to match the current theme/s selected. There is definately no current stylevar controlling it, but im not sure how or what to add to either the specific postbit template (or additional.css?) to allow me to modify the colour of the widgets.
|
#4
|
||||
|
||||
Did you try sidebar_content_background ?
|
#5
|
|||
|
|||
god, do i feel foolish
Yes, I altered a few of the "sidebar" stylevars there, and yes, thats the correct set of stylevars. out of interest though, how were you able to ascertain that? i assume these are called up somewhere within cms_widget_content? |
#6
|
||||
|
||||
I just used firebug to get the CSS and did a Search in Templates for that css and found the stylevar.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|