abcy122
abcy122

Reputation: 125

Images in my Joomla template

I created a Joomla template by creating the following files:index.php" , "templateDetails.xml","images" and "css". I installed it correctly but the images are not displayed when i am selecting the template.

Anyone knows how to resolve this problem? I triple checked the paths and different settings of Joomla but i did not work


This is part of the XML file that corresponds to images

            <filename>images/left-top-corner.png</filename>
            <filename>images/main-banner.jpg</filename>
            <filename>images/main-bg.jpg</filename>
            <filename>images/menu-bg.gif</filename>
            <filename>images/right-bot-corner.png</filename>
            <filename>images/right-top-corner.png</filename>

This is part of the CSS code

This is part of the basic index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <head> <jdoc:include type="head" /> baseurl ?>/templates/mynewtemplate/css/style.css" type="text/css" /> baseurl ?>/templates/mynewtemplate/css/layout.css" type="text/css" /> baseurl ?>/templates/mynewtemplate/css/ie_style.css" type="text/css" /> baseurl ?>/templates/template?>/css/style.css" type="text/css" />

baseurl ?>/templates/template;?>/css/ie_style.css" rel="stylesheet" type="text/css" /> baseurl ?>/templates/template;?>/css/ie7only.css" rel="stylesheet" type="text/css" /> baseurl ?>/templates/template;?>/javascript/ie_png.js">

Upvotes: 1

Views: 1999

Answers (1)

Kai K.
Kai K.

Reputation: 452

Did you find the problem? Looking at your CSS code I found a potential issue:

background:url(..\images\main-bg.jpg)

I think you should use normal slashes not the Windows style back slashes! Try the following:

background:url(../images/main-bg.jpg)

Upvotes: 1

Related Questions