Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31610

icachurro on "Error generating code css"

$
0
0

Hello

I have a problem in creating the css in the head, I'm using a responsive theme.

It turns out that when I generated the web, a function that is called repeatedly, once I generates bad code, instead of making me a <link> tag makes me a <style>, and do not understand why, you expose it to example

This call is inside the folder in the theme itself functions in the file jquery-css-include.php

This call:
wp_enqueue_style("lightbox", THEME_CSS_URL."lightbox.css", Array());

Generates this code:
<link rel='stylesheet' id='lightbox-css' href='http://http://piccione.orange-themes.com/wp-content/themes/piccione-theme/css/A.lightbox.css,qver=3.8.1.pagespeed.cf.XFw5M5yGK0.css' type='text/css' media='all'/>

This is correct, but the next line is wrong and is a function call just behind the front.

wp_enqueue_style("style-responsive", THEME_CSS_URL."responsive/desktop.css", Array());

<style id='style-responsive-css' media='all'>ul.menu li:hover ul.sub-menu{display:block}ul.menu ul.sub-menu{display:none;padding-right:6px;position:absolute;z-index:10;width:200px;padding-top:10px;background:url(wp-content/themes/piccione-theme/images/xsubmenu-arrow.png.pagespeed.ic.WlPHfB1pcr.png) no-repeat 16px 4px;box-shadow:0px 3px 1px rgba(0,0,0,.3)}ul.menu ul.sub-menu li{display:block;margin:0px;background:transparent;border-bottom:1px solid #303030;width:100%;background:#232323}ul.menu ul.sub-menu li a{display:block;width:100%}ul.menu>li>a span{padding-right:10px}ul.menu>li>a span:after{font-family:'Entypo',Arial;content:'\25BE';display:block;position:absolute;right:19px;top:14px;font-size:10px;opacity:.8;filter:alpha(opacity=80)}</style>

And it should generate the following code:

<link rel="stylesheet" id="style-responsive-css" href="http://piccione.orange-themes.com/wp-content/themes/piccione-theme/css/responsive/desktop.css" type="text/css" media="all"/>

As you see are the same calls, but generate different css code, and do not understand what happens when the original theme, nothing happens this, I can you lend a hand?

Thank you very much.


Viewing all articles
Browse latest Browse all 31610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>