Hello
I have copied the whole of bartik into themes/custom and renamed it appropriately.
I have changed all references to bartik to the theme name
I have set as default theme
cleared caches including truncating all cache tables in the database

BUT I still get the original settings for the colors.css
Any thoughts as to what is happening or not happening?

Comments

riverrat’s picture

Should have added that i have changed the css in #page

VM’s picture

What exactly are you trying to do? If create a subtheme, that isn't how it's done. If generate a duplicate theme, ok but note that avoiding a subtheme will mean any future changes to bartik will need to be manually performed on your duplicated theme.

That said, there must be some reference somewhere in the duplicated theme that is still pulling the colors.css file. Also of note, ensure to clear the database cache after altering the theme files.

riverrat’s picture

Hi
Thanks for the reply
I am trying to create a duplicate theme so that I can play with it and increase my understanding of drupal 8 theming
I cleared all caches both using the 'performance/clear all caches' and truncate cache tables using phpmyadmin
So the problem remains

riverrat’s picture

Hi again
Found the colors.css file hidden in sites/default/files/color; deleted it and hay presto it took what I wanted.
Then to actually give me a background image I changed the css file block.css to

.layout-main-wrapper {
    
        background-image: url(../../images/DSC00498-2-1.jpg);
  background-size: cover;
}

And now I have a background image behind the main content
(Can't demonstrate it as it is on a localhost installation)