I am trying to restore default css

  • Posts: 52
  • Thank you received: 2
12 years 1 month ago #68363

I am trying to restore default CSS in Configuration | Display | CSS Panel

Everything was fine until I opened it and made a change and selected Save. Then everything went badly wrong. The result of saving created a Custom1 CSS.

Then when I reversed the change and saved I saw it was custom2.

I am currently up to custom6 but all I want to do is revert to default.

Reason: I was and still wnat my Joomla! template to override the default css (as it has done up to now!).

Questions:

How do I remove the annoying and confusing Custom1 - 6?

Just as important?

How do I stop a customer from playing with this feature and cancelling out all my hard work templating?

I think this is an aimportant issue as of course a general user simply would not understand the implications.

Unless I am myself mistaken.

Thanks, Ken :)

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68377

Just select "default" in that dropdown and save the configuration.

If you have the business edition, you can remove the configuration access as well as other parts of HikaShop from groups of users by configuring the tab "access level" of the configuration page.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
12 years 1 month ago #68385

Yes the customer has just purchased the Business upgrade.

They are also Super Admin however so I will simply advise them NOT to change the CSS setting!

However, I have just changed Front End CSS option back to 'default' and refreshed browser. No change.

The template I am running was working fin this morning, now we cannot override the defalt css it seems.

I even tried a database rollback and no success.

One would have thought the changes would be stored in the database. Are they instead written to a system file (I am not a PHP expert by the way!).

Are there any other settings that maaybe need changing to enable the template I have produced be applied. It is the default template in Joomla! Templates.

Thanks - ken :)

PS

I have even tried several browsers - but my template has ceased to override the default css!

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68415

Maybe you had that option set to "none" and not to "default" ?

When you do your custom CSS in your template, you can just add !important everyone and it will force the override of hikashop's CSS.

The customizations that you do in the CSS of HikaShop are indeed stored on the file system in the folder media/com_hikashop/css

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
12 years 1 month ago #68500

No, it was set to default. I think what happened was that I was distracted by a number of calls and thought I had uploaded the latest CSS file when I had not. In any case, when I re-uploaded (ha ha) this corrected the situation! Sorry.

Thanks for the useful info re media/com-hikashop/css.

It looks like I can also access the customer's email templates here by FTP. Easier for a web designer than working through the HikaShop control panel (though that is an excellent conduit!).

One question: can you clarify CSS format when using '!important'?

Is this what you mean?

font-size:22px !important;

And does the !important have to be used after every line of CSS which I want to override the default template (or whichever is selected in the HikaShop Control Panel Configuration | Display | CSS Panel) ?

So far I have not used and no problems - is the !important for the benefit of older browsers?

Thanks, Ken :)

Last edit: 12 years 1 month ago by wynchcote.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68519

It does not benefit anything.

What is does is that it overrides all the other CSS.
When you add a color with !important to something, that something will get that color, even if some other CSS on your website, which should normally be prioritary, is there.

I thought that your issue could be caused by some other CSS overriding yours. That's why I recommended that, in order to make sure that your CSS was used.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum