• Resolved hellblauervogel

    (@hellblauervogel)


    Dear All,

    I am new to wordpress and doing now my first or second steps with TT4 in order to create an accessible Website for my business. I can write html and CSS quite well, although I am not an expert.

    I have already once tried to build a Website with a “toolkit” (not with WordPress) unfortunately the result was not accessible for people reading with a screen reader therefore I am here now.

    I tried to change the colour of my footer using the additional CSS. I went to Navigation – Footer – edit design of blocks – there I chose then Navigation blocks – and added the additional CSS. As it was written that there is no selector needed I just wrote background-colour: #eeeee0 but it did not change anything. What did I do wrongly?

    As I am using Word Press in German I tried to translate how I navigate through the menue.

    In case you need any more information in order to help me please let me know.

    Looking forward to hearing from you

    Angelika

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Felipe Santos

    (@foosantos)

    Hi Angelika,

    You can technically do that with CSS, but it should be possible to do the same from the editor.

    Can you try going to Site Editor > Patterns > Template parts > Footer, then see if you find your footer there? You should be able to change the background color there.

    If you really want to do with CSS, you just use the tag name as the seletor, it should work perfectly:

    footer {
        background: red;
    }

    You can add this CSS by going to the Site Editor, then Styles. There you can click on the three-dot icon (kebab menu), and go to Additional CSS.

    Image as example:

    https://d.pr/i/Yox1tm
    Full Size: https://d.pr/i/Yox1tm

    Thread Starter hellblauervogel

    (@hellblauervogel)

    Dear Felipe,

    thank you so much for being so helpful. With the additional CSS I was able to change the background colour of my footer. I wrote it into additional CSS as you explained to me. ->

    footer {
    background: #EEEEE0;
    }

    The same way I tried to change the background colour of my header. So I wrote below

    header {
    background: #EEEEE0;
    }

    but nothing changes. What has happened?

    Another question: When do I write my additional CSS in the additional CSS field that you showed and when do I write it into: navigation -> styles ->edit design of blocks -> then I choose navigation and put the additional CSS there.

    Where is the difference? This is not clear to me.

    Thank you in advance and BR from Vienna

    Angelika

    Hey @hellblauervogel! For the header, you can do something like this:

    header.wp-block-template-part {
      // your css properties here
    }

    I would still recommend that you use the site editor’s built-in tools to change colors of elements.

    Another question: When do I write my additional CSS in the additional CSS field that you showed and when do I write it into: navigation -> styles ->edit design of blocks -> then I choose navigation and put the additional CSS there.

    In general, any general css code should be under the main CSS area, as shown by Felipe in the last reply. The longer way that you have mentioned, should only be used if you want to apply any specific css to any specific instance of a block.

    Thread Starter hellblauervogel

    (@hellblauervogel)

    Dear Kavya,

    thank you so much for your reply. I have already tried before to change the colour of the header using the built in colour tool. I can do the change (system tells me I do the change in the template) but when I take a look at the website I see no change. How can I find out what went wrong?

    So I tried now the way to add the additional CSS as follows:

    header.wp-block-template-part {
    background: #EEEEE0;
    }

    But still no change. Why? What has happened?

    Hope you can help me.

    Looking forward to hearing from you.

    BR Angelika

    Thread Starter hellblauervogel

    (@hellblauervogel)

    I want to add the information that when I take a look at the website and the header I see at the bottom of the header a little bit of the correct colour. But for some reason the correct colour is overlayed by a wrong one. Hope this additional information helps and looking forward to hearing from you.BR Angelika

    It looks like you have set the background for an inner block inside the main header block. Can you try using the List view and see if there are multiple levels inside the main header that have any background set?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to edit colour of my footer’ is closed to new replies.