Ok,
>> pixel.png is in the image folder in the template.
>> extra css code is in the override.css (which is enabled in the template parameter)
- Code: Select all
.pixel {
background-image: url("../images/pixel.png");
background-repeat: repeat;
float: left;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: -1;
}
>> code is added at the end of the head.php
- Code: Select all
<?php
// This is the code which will be placed in the head section
// No direct access.
defined('_JEXEC') or die;
$this->addTemplateFavicon();
// check the color version
$template_style = $this->getTemplateStyle('style');
// load the CSS files
if(!file_exists(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php')) {
$this->API->addCSS($this->API->URLtemplate() . '/css/k2.css');
}
$doc = JFactory::getDocument();
$doc->setTitle(preg_replace('@--@', ' - ', $doc->getTitle()));
$this->API->addCSS($this->API->URLtemplate() . '/css/font-awesome.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/normalize.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/layout.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/joomla.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/system/system.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/template.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/menu.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/gk.stuff.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/style'.$template_style.'.css');
if($this->API->get('typography', '1') == '1') {
$this->API->addCSS($this->API->URLtemplate() . '/css/typography/typography.style'.$template_style.'.css');
}
$this->API->addCSSRule($this->API->get('css_custom', ''));
// include fonts
$font_iter = 1;
while($this->API->get('font_name_group'.$font_iter, 'gkFontNull') !== 'gkFontNull') {
$font_data = explode(';', $this->API->get('font_name_group'.$font_iter, ''));
if(isset($font_data) && count($font_data) >= 2) {
$font_type = $font_data[0];
$font_name = $font_data[1];
if($this->API->get('font_rules_group'.$font_iter, '') != ''){
if($font_type == 'standard') {
$this->API->addCSSRule($this->API->get('font_rules_group'.$font_iter, '') . ' { font-family: ' . $font_name . '; }'."\n");
} elseif($font_type == 'google') {
$font_link = preg_replace('/https?:/m', '', $font_data[2]);
$font_family = $font_data[3];
$this->API->addCSS($font_link);
$this->API->addCSSRule($this->API->get('font_rules_group'.$font_iter, '') . ' { font-family: \''.$font_family.'\', Arial, sans-serif; }'."\n");
} elseif($font_type == 'squirrel') {
$this->API->addCSS($this->API->URLtemplate() . '/fonts/' . $font_name . '/stylesheet.css');
$this->API->addCSSRule($this->API->get('font_rules_group'.$font_iter, '') . ' { font-family: ' . $font_name . ', Arial, sans-serif; }'."\n");
} elseif($font_type == 'adobe') {
$this->API->addJS('//use.edgefonts.net/'.$font_name.'.js');
$font_name = explode(":", $font_name);
$font_name = $font_name[0];
$this->API->addCSSRule($this->API->get('font_rules_group'.$font_iter, '') . ' { font-family: ' . $font_name . ', Arial, sans-serif; }'."\n");
}
}
}
$font_iter++;
}
// add responsive stylesheets
$this->generateLayout();
// include JavaScript
$this->API->addJS($this->API->URLtemplate() . '/js/modernizr.js');
$this->API->addJS($this->API->URLtemplate() . '/js/gk.scripts.js');
$this->API->addJS($this->API->URLtemplate() . '/js/gk.menu.js');
$this->API->addJS($this->API->URLtemplate() . '/js/fitvids.jquery.js');
$this->API->addJS($this->API->URLtemplate() . '/js/lazyload.jquery.js');
$this->API->addJS($this->API->URLtemplate() . '/js/scrollreveal.js');
$this->API->addJSFragment( "\n".'$GK_TMPL_URL = "' . $this->API->URLtemplate() . '";'."\n" );
$this->API->addJSFragment( "\n".'$GK_URL = "' . $this->API->URLbase() . '";'."\n" );
if($this->API->get("css_prefixer", '0')) {
$this->API->addJS($this->API->URLtemplate() . '/js/prefixfree.js');
}
if($this->API->get('css_compression', '0') == 1 || $this->API->get('css_cache', '0') == 1) {
$this->cache->registerCache();
}
if($this->API->get('js_compression', '0') == 1 ) {
$this->cache->registerJSCompression();
}
?>
<!--[if IE 9]>
<link rel="stylesheet" href="<?php echo $this->API->URLtemplate(); ?>/css/ie/ie9.css" type="text/css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo $this->API->URLtemplate(); ?>/css/ie/ie8.css" type="text/css" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->API->URLtemplate(); ?>/css/ie/ie7.css" type="text/css" />
<![endif]-->
<!--[if lte IE 9]>
<script type="text/javascript" src="<?php echo $this->API->URLtemplate() . '/js/ie.js'; ?>"></script>
<![endif]-->
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="<?php echo $this->API->URLtemplate() . '/js/respond.js'; ?>"></script>
<script type="text/javascript" src="<?php echo $this->API->URLtemplate() . '/js/selectivizr.js'; ?>"></script>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.gkIsWrapper-gk_photo figure').each(function(){
$(this).append('<div class="pixel"></divc>');
});
});})(jQuery)</script>
>> all caches are cleared
Nothing appears. I just pm you the website link (it is a website under developpement)
Regard.