-
AuthorPosts
-
November 25, 2015 at 9:27 am #756417
I have the template hawkstore and I would like to change the default colour (blue, green, yellow) with other colour. I can do it changing the css of the template, but
is there any other method to change this colour?
Thank you
Rodrigopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 9:29 am #756627<blockquote>is there any other method to change this colour?</blockquote>
Hi
Your question is not so clear , you maybe could try thememagic feature ?
November 25, 2015 at 10:16 am #756635Hello,
I’d like to change the colour of the buttons (for example). In the default template the colour is red and I need to change this colour to pink. I think I cant use the thememagic feature
Thanks,
Rodrigopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 10:24 am #756637<em>@mbs13 503924 wrote:</em><blockquote>Hello,
I’d like to change the colour of the buttons (for example). In the default template the colour is red and I need to change this colour to pink. I think I cant use the thememagic feature
Thanks,
Rodrigo</blockquote>Hi
Your website is offline so i cannot verify at all your settings , however you can use the custom.css to customize anything you want
Take a look at the documentation for T3 Framework customization HERE
November 25, 2015 at 11:28 am #756645I can create the file custom.css but i have a question:
Is necessary to add the file custom.css to the file index.php of the template?
Or could i add the file to a configuration xml?And finally. If i update the template, could i lost the custom.css?
Yesterday I have created the file custom.css yet but it doesnt load when I load the website
Thanks,
Rodrigopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 11:38 am #756647Hi
<blockquote>Is necessary to add the file custom.css to the file index.php of the template?
Or could i add the file to a configuration xml?</blockquote>It is not necessary , it is already loaded by this file templatesja_hawkstoretplsblockshead.php
<?php
// CUSTOM CSS
if(is_file(T3_TEMPLATE_PATH . '/css/custom.css')) {
$this->addStyleSheet(T3_TEMPLATE_URL.'/css/custom.css');
}
?><blockquote>And finally. If i update the template, could i lost the custom.css?</blockquote>
To avoid this you should follow instructions as described in this documentation page HERE
Anyway since custom.css is not contained in any template update package, it will never be overrided
1 user says Thank You to pavit for this useful post
November 25, 2015 at 1:23 pm #756656A question more:
I can see in my website (with view source):
<!– META FOR IOS & HANDHELD –>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no”/>
<meta name=”HandheldFriendly” content=”true” />
<meta name=”apple-mobile-web-app-capable” content=”YES” />
<!– //META FOR IOS & HANDHELD –><!– Le HTML5 shim, for IE6-8 support of HTML5 elements –>
<!–>
<script src=”//html5shim.googlecode.com/svn/trunk/html5.js”></script>
<!–><!– For IE6-8 support of media query –>
<!–>
<script type=”text/javascript” src=”/plugins/system/t3/base/js/respond.min.js”></script>
<!–>but not load the css
In the file head.php:
<!– //META FOR IOS & HANDHELD –>
<?php
// SYSTEM CSS
$this->addStyleSheet(JURI::base(true).’/templates/system/css/system.css’);
$this->addScript (T3_URL.’/js/jquery.equalheight.js’);
?><?php
// T3 BASE HEAD
$this->addHead(); ?><?php
// CUSTOM CSS
if(is_file(T3_TEMPLATE_PATH . ‘/css/custom.css’)) {
$this->addStyleSheet(T3_TEMPLATE_URL.’/css/custom.css’);
}
?><!– Le HTML5 shim, for IE6-8 support of HTML5 elements –>
It doesnt load the lines with <?php
Thanks,
Rodrigopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 4:16 pm #756663<blockquote>It doesnt load the lines with <?php</blockquote>
Sorry where you are expecting php lines should be loaded ?
Joomla load php lines on server side and returns html code to be loaded by your browser , so i cannot understand what you are trying to obtain or what you are expecting to see.
Could you be more clear ?
November 25, 2015 at 6:16 pm #756668I think that the css doesnt load because the variable T3_TEMPLATE_PATH is not defined
If I add this line<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” />
to the file head.php the css loads correctly
why the variable T3_TEMPLATE_PATH is not defined?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 6:22 pm #756669<blockquote>I think that the css doesnt load because the variable T3_TEMPLATE_PATH is not defined
</blockquote>sorry but I’m not following you
<blockquote>If I add this line to the file head.php the css loads correctly
</blockquote>This file templatesja_hawkstoretplsblockshead.php already have this declared, what i do not understand is why you should add it again
could you send me via PM a temp super user account to your backend ? so i can better understand what do you have on your website ?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 25, 2015 at 7:13 pm #756671Hi there
You have already everything as i told above
1) custom.css file
2) Your head.php file has correctly declared the path for itNovember 25, 2015 at 8:07 pm #756678I agree with you, but if i delete this line
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” />
of the file head.php, the css named custom.css doesnt load in the website
Why not?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 26, 2015 at 6:21 am #756714<blockquote>of the file head.php, the css named custom.css doesnt load in the website
Why not?</blockquote>
Because file head.php is the place where you should declare the url and the type of file loaded by each page of the template
link rel=”stylesheet”href=
type=”text/css”If you want to load other files you should add path and file type in that file
if you do not need custom.css loaded then you can delete that part of codeThis is how T3 Framework ( that is the base for Joomlart templates ) works
Best regards
November 26, 2015 at 6:59 am #756715<em>@pavit 504038 wrote:</em><blockquote>
If you want to load other files you should add path and file type in that file
if you do not need custom.css loaded then you can delete that part of code
</blockquote>But I only want to loada the file custom.css and I think its no necessary to add the line <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” /> to load it because if exists, it is loaded in the file head.php
But if i dont add the line <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” /> in the file head.php, the file custom.css is not loaded.
I would like to delete the line <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” /> in the file head.php but i cant.
Thanks
Rodrigopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 26, 2015 at 7:05 am #756718<blockquote>I would like to delete the line <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css” type=”text/css” /> in the file head.php but i cant.</blockquote>
You cannot delete it if you want to load the custom.css file
Please take a look at the documentation HERE
-
AuthorPosts
This topic contains 22 replies, has 3 voices, and was last updated by Saguaros 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum