Override not working at all

Support desk for Multipurpose Quark Theme
GK User
Sun Aug 09, 2015 11:02 am
Hi,
I'm experiencing a complete failure in the application of whether override.css or custom override settings rules with Quark. I followed the guide: I enabled the option, disabled any cache or compression, tried different browsers, cleared any cache...no luck at all.
I am implementing the additional secretkey field into offline page as we will be working at the website for the next weeks and use the feature. I modified the offline.php file and the field is there but comes out weird because there's no p#secretkey rule, so I am trying to add it together with the other p#username, p#password rules. I am confident with development tools in both FF and Chrome but none show the overridden css applied in any way I set it, as if it is not active at all. Modifying the direct offline.ecommerce.css file, everything works as expected, but of course it is not recommended.

What's wrong?

Website: deltaflorence.it/Joo34
User avatar
Fresh Boarder

GK User
Mon Aug 10, 2015 6:12 am
override.css is not loaded in offline page.
To fix that please edit file:
templates/gk_quark/offline.php
find this block of code:
Code: Select all
<head>
   <jdoc:include type="head" />
   <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css" />
   <link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/offline<?php echo $style_suffix . $override_suffix; ?>.css" type="text/css" />
</head>

and change it to:
Code: Select all
<head>
   <jdoc:include type="head" />
   <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css" />
   <link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/offline<?php echo $style_suffix . $override_suffix; ?>.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/override<?php echo $style_suffix . $override_suffix; ?>.css" type="text/css" />
</head>
User avatar
Moderator

GK User
Mon Aug 10, 2015 1:39 pm
Thank you Cyberek.

Your suggestion pointed me out that I was using override.css but the code tries to load override.ecommerce.css I didn't know anything about.
Of course creating it and replicating the content there makes everything work as expected but rises a lit question, in case I use ecommerce as a base setting will I always have to use the override.ecommerce.css version of override? If not, when can I use override.css? I couldn't locate any information about the differences between them...
User avatar
Fresh Boarder

GK User
Tue Aug 11, 2015 7:17 pm
If you started with the eCommerce version of quark, override.ecommerce.css should be used. Name of the override file depends on the template settings.
User avatar
Moderator

GK User
Tue Aug 11, 2015 9:43 pm
Ok, got it.

Case closed, thanks again!!
User avatar
Fresh Boarder

GK User
Wed Aug 12, 2015 7:14 am
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Thu Aug 13, 2015 2:19 pm
Nope, it's definitely solved, thank you Cyberek.
..but stay tuned, I'm just popping up with some problems with Cookie Consent in a minute (if no search result is suitable).

You can close this one if you wish.
User avatar
Fresh Boarder

GK User
Fri Aug 14, 2015 7:41 am
Feel free to post new forum threads if you have any other questions - it allows us to answer faster.
User avatar
Moderator


cron