New css

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sat Nov 19, 2011 12:05 pm
Hi.

How to add a new link to the css?
index.php is very difficult

Robert.
User avatar
Junior Boarder

GK User
Sat Nov 19, 2011 12:21 pm
Whats your joomla version ?
User avatar
Platinum Boarder

GK User
Sat Nov 19, 2011 12:24 pm
1.7.2. It stands on localhost. I have a map that has its own css file, and do not know how to add.
User avatar
Junior Boarder

GK User
Sat Nov 19, 2011 12:39 pm
How are you loading the map into joomla. if its component or a module it should add itself automatically.

If you still need to load it with gavick template you need following information.
Location of maps css file e.g http://www.mywebsite.commapmap.css

then find file: templatesgk_postnotelayoutsblockshead.php
Find Lines: 42 and 43 which is below
Code: Select all
    $this->addCSS($this->URLtemplate() . '/css/gk.stuff.css');
    $this->addCSS($this->URLtemplate() . '/css/k2.css');

Add after your css file going by my above example it would be as below.
Code: Select all
    $this->addCSS($this->URLtemplate() . '/css/gk.stuff.css');
    $this->addCSS($this->URLtemplate() . '/css/k2.css');
    $this->addCSS($this->URLbase() . '/map/map.css');


See you around.
User avatar
Platinum Boarder

GK User
Sat Nov 19, 2011 12:48 pm
Is badly expressed, I had in mind the map of my country, joomla map not ;p.
I'll check your a hint thanks

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="pl-mapa.js"></script>


And this is where you add?

Robert.
User avatar
Junior Boarder

GK User
Mon Nov 21, 2011 5:07 am
To load external files use the same as above in my example but use below codes.
Code: Select all
$this->addCSS('http://www.externaldomain.com/map/map.css');
$this->addJS('http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');


See below links if you need further information regarding this.
Code: Select all
http://wiki.gavick.com/joomla-templates/templates-for-joomla-1-6/how-to-modify-pages-head-section-2/
User avatar
Platinum Boarder


cron