Closed (fixed)
Project:
AdaptiveTheme
Version:
7.x-3.x-dev
Component:
CSS/HTML
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2012 at 03:03 UTC
Updated:
27 Dec 2012 at 13:11 UTC
Hey @Jeff Burnz what would be the best way to add a no script tag to AdaptiveTheme? I'd ideally like to do it from a module. Was thinking something like:
$element = array(
'#tag' => 'link',
'#attributes' => array(
'href' => '../dist/theme-gcwu-fegc/css/theme-ns-min.css',
'rel' => 'stylesheet',
),
// Don't redirect if javascript is enabled. This is valid HTML5.
'#prefix' => '<noscript>',
'#suffix' => '</noscript>',
);
drupal_add_html_head($element, 'wetkit_wetboew_noscript');
However renders the </noscript> on a new line.
Comments
Comment #1
Jeff Burnz commentedThe issue is with...
http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_html_...
which adds a new line to html_tag elements.
You can use type markup and push a string, not really a big deal unless you really do need that as structured data:
Comment #2
sylus commentedThank u so much!
Comment #3.0
(not verified) commentedadd code tags