Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Transparent footer on main page but not on the others

Transparent footer on main page but not on the others

Scheduled Pinned Locked Moved Bug Reports
footer
8 Posts 2 Posters 482 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anselm
    wrote on Aug 18, 2020, 7:53 AM last edited by
    #1

    Hi there. :)

    I seem to have a problem with the footer on my website which I'm unable to fix. The website is: http://trainofthought.de/

    The footer is meant to be transparent so that the background of the respective page is shown as the footer's background.

    It works really well on the main page where the content of the footer ("(c) 2020 Impressum / Datenschutz") is floating above the background image I use. But it doesn't work on all other pages where the footer is shown as having a white background (I don't use images on those pages but a background colour). I don't know if that's because I got the background color of the footer wrong or because the pages' respective backgrounds don't reach all the way down; or maybe because of some other reason.

    Does anyone know how to fix this?

    That's what it looks like on the main page (and that's how it's meant to be):
    screenshot_main page.JPG

    That's what it looks like on all other pages (and I would like the page's background colour to show through the footer):
    screenshot_workshops.JPG

    That's the code I've used to set the footer's background color to transparent:
    Custom CSS.JPG

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Aug 19, 2020, 4:09 PM last edited by
      #2

      Dear @Anselm

      Just wanted to reach out and say i'm taking a look into it :)

      Hope all is well, Thank you for using Lay Theme!

      Best Wishes
      Richard

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anselm
        wrote on Aug 20, 2020, 6:13 AM last edited by
        #3

        Great, thanks very much! :)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Richard
          Global Moderator
          wrote on Aug 24, 2020, 3:05 PM last edited by
          #4

          Dear @Anselm

          Your Footer is indeed transparent and there is nothing wrong with the footer's CSS :)

          Screen Shot 2020-08-24 at 4.41.58 PM.png

          However we need to apply/extend the "Background-color" to the whole page, not just the "Grid" containing your main content.

          Screen Shot 2020-08-24 at 4.44.04 PM.png

          We need to target the page individually and not only use the "Body" tag as this will apply the Color across multiple pages -

          So we use the page's id ( its technically a class...) in this example it being "id-32" within the body,

          body.type-page.id-32 {
              background-color:#b0c6d8;
          }
          

          Alternatively we could target the "data-id" of the page:

          Screen Shot 2020-08-24 at 4.53.12 PM.png

          body[data-id="32"] {
              background-color:#b0c6d8;
          }
          

          Or the "data-slug" depending on what suits your workings"

          Screen Shot 2020-08-24 at 5.03.14 PM.png

          body[data-slug="workshops"] {
              background-color:#b0c6d8;
          }
          
          

          Let me know how you go :)

          Best wishes on you Lay Theme journey and thank you for being with us!

          Sincerely
          Richard

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Anselm
            wrote on Aug 26, 2020, 1:49 PM last edited by
            #5

            Hi Richard, thanks very much for looking into this. It does work now for the "workshop" page for which you kindly provided the code. :)

            However, I seem to be unable to reproduce this solution for the remaining pages. One of the things I don't know how to do is how to find the respective page ids (or data slugs such as "workshops"). And also, are these ids / data slugs somewhere to be found or do I need to define them somewhere in order to use them here?

            And finally, am I correct in thinking that I simply add these information to the custom CSS? I did so with the code you provided, and it did work immediately. But I added some more for the other pages and it didn't work for them.

            Do you have any idea where I might have gone wrong?

            Thanks very much for your help, I really appreciate it.

            screenshot.JPG

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Richard
              Global Moderator
              wrote on Aug 26, 2020, 6:32 PM last edited by
              #6

              Dear @Anselm

              The Slugs Are Hiding! :) you just have to find them :)

              We can do this by using Google Chrome's Built in 'Developer tools"
              https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

              When Viewing the page - we can "right-click" on the desired area and choose "inspect",

              Screen Shot 2020-08-26 at 8.18.33 PM.png

              this will bring up the "Developer tools" Which will in turn show you the HTML Structure of your Website - along with CSS as well as many other features.

              Now find the opening "Body" tag located near the top of the structure:

              Screen Shot 2020-08-26 at 8.23.28 PM.png

              Here within we can see certain classes, data and even those hiding Slugs!
              With this information we can now target it with Custom CSS.

              The code works for me,
              However give the class option ago to see if that works E.g:

              body.type-page.id-32 {
                  background-color:#b0c6d8;
              }
              

              You can find the information here:
              Screen Shot 2020-08-26 at 8.30.21 PM.png

              If you need further aid, learning some more basics will greatly help you
              https://www.khanacademy.org/computing/computer-programming/html-css

              Best Wishes & good Luck!

              Richard

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Anselm
                wrote on Aug 27, 2020, 8:18 AM last edited by
                #7

                Dear Richard,
                great, thanks very much for your help. I've now been able to solve the problem for all pages. :)
                Thanks for your support, I really appreciate that; great work!
                Best wishes
                Anselm

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Richard
                  Global Moderator
                  wrote on Aug 27, 2020, 1:39 PM last edited by
                  #8

                  Dear @Anselm

                  Great to hear :)

                  Best of Luck
                  Richard

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes

                  6/8

                  Aug 26, 2020, 6:32 PM


                  I also code custom websites or custom Lay features.
                  💿 Email me here: 💿
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                  laytheme.com
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  6 out of 8
                  • First post
                    6/8
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search