vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Static HTML Widget Background Style? - CMS (https://vborg.vbsupport.ru/showthread.php?t=297817)

vivapotenza 05-04-2013 12:11 PM

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

Lynne 05-04-2013 06:32 PM

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.

vivapotenza 05-05-2013 11:48 PM

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.

Lynne 05-06-2013 09:05 PM

Did you try sidebar_content_background ?

vivapotenza 05-07-2013 12:15 PM

god, do i feel foolish :o

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?

Lynne 05-07-2013 04:09 PM

I just used firebug to get the CSS and did a Search in Templates for that css and found the stylevar.


All times are GMT. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00977 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete