Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have a problem about my background in this Danland theme. I tried to add blocks "Preface first\ middle\ last" with different backgrounds in CSS, but every time all of them shows that background3. What is the problem?
Help me, please..
Comment | File | Size | Author |
---|---|---|---|
#3 | block.JPG | 7.49 KB | MNishihata |
#1 | mysite.jpeg | 121.22 KB | Deepika.chavan |
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
1. Rename your 'local-sample.css' file to local.css which is there in '/themes/contrib/danland' directory. If it is not there then you can create one local.css file.
2 . Please do clear cached data.
3. Try adding following css code in local.css file to change the background color of different block in above given regions.
4. Get block id by using firebug(Right click the block and select inspect element). In my case block-ids are 'block-block-6', 'block-block-7' and 'block-block-8' respectively. So replace my block-ids with yours and change the color.
I tried it on my local site. Please see the attachment.
Rgrds,
Deepika chavan.
Comment #2
newerdrupal CreditAttribution: newerdrupal commentedThank you so much, I have solved this problem.
Comment #3
MNishihata CreditAttribution: MNishihata commentedHi, I tried the above steps to change the block background color, but it only changes a part of the block. Can you tell me what I could be doing wrong? I changed the blocks so that they have rounded corners, so I didn't know if that might have something to do with it. Thanks.