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

francewhoa’s picture

+1 Same here CSS isn't loading. Is this module able to do that? If yes anybody knows how?

Subscribing

francewhoa’s picture

psampaz’s picture

using 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 all

Will White’s picture

Status: Active » Fixed

If 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 $scope as widget.

Here is an example that adds the default system stylesheet:

drupal_add_css(drupal_get_path('module', 'system') . '/defaults.css', 'widget');

Again, this only works for the iframe style.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.