Closed (fixed)
Project:
Web Widgets
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2010 at 09:54 UTC
Updated:
22 Sep 2010 at 01:00 UTC
I've successfully emeded a widget. However the related CSS isn't loading. Now I have the Admin Links (views-admin-links views-hide) showing and the whole thing looks rather bare.
Since it's an iframe adding the css to the site that's embedding the widget won't help.
Any help, on how I can get any CSS embedded?
Comments
Comment #1
francewhoa+1 Same here CSS isn't loading. Is this module able to do that? If yes anybody knows how?
Subscribing
Comment #2
francewhoaThis might work: http://drupal.org/node/710330#comment-2713672
Comment #3
psampaz commentedusing web_widgets/iframe/web_widgets_iframe_wrapper.tpl.php will do the job but you have to add
<link type="text/css" rel="stylesheet" media="all" href="***********.css" />manually because<?php print $styles ?>prints nothing at allComment #4
Will White commentedIf you're using the iframe style, you should be able to add CSS from a module using drupal_add_css(). You just need to specify the
$scopeaswidget.Here is an example that adds the default system stylesheet:
Again, this only works for the iframe style.