image takes up whole widget

Homepage Community Forums Epik Theme Support image takes up whole widget

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17457
    colinjordan
    Customer

      I’m trying to make an image background that would take up an entire widget on the homepage. For example, here’s the site I’m working on: http://www.new.cirrusaviation.com. I am trying to reproduce the type of homepage widgets you see on this page: http://www.usaviationacademy.com.

      I’m not super-proficient with CSS, so I’d prefer a plug-in solution or something similar. But is how it has to be done, that’s fine.

      Thanks in advance!

      #17458
      Andykev
      Customer

        Did you use the CUSTOMIZE – BACKGROUND IMAGES (the one at the top of the list) – HOME FEATURED SECTION 3, 4, 5….etc. ?

        You can upload any image into this area, and as long as a widget is active (ie. text widget) it will show on the home page. The image won’t appear unless there is a widget active, and an empty text widged is all you need, even if you don’t add content into the text widget.

        #17459
        colinjordan
        Customer

          Just checked that out, and it’s not quite what I had in mind. My fault, though. I probably shouldn’t have referred to what I’m aiming for as a background image.

          I’m just thinking of an image that takes up a whole homepage widget area, as in the http://www.usaviationacademy.com website. I’m not sure how to explain it other than to indicate how those widgets look on that website, and to say that rather than it be a background image that these widgets scroll over, the image would be fixed within the borders of the widget, and whenever you see the widget on the screen, you’re always seeing the entire photo.

          I’m sorry if that’s unclear. If I need to explain that better, just let me know. Thanks for your help.

          #17462
          Eric
          Customer

            What @Andykev wrote is exactly how you can achieve that. The Customizer has options to add background images that take up the entire background. You could use the customizer, or you could manually add them in through CSS.

            The link to your site isn’t working by the way.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            #17466
            colinjordan
            Customer

              Hey Eric,

              Thanks for weighing in. You’re right, I am able to use the customizer to create a background image that fills the entire widget. I would like the image to take up the whole widget area, but as a fixed image and not a background.

              What I mean is this: rather than have the image be a background that the widget can scroll past and act as a “window” on the image (see different parts of the image as you scroll up and down), I’d like to have the entire image fill the widget, and that the entire image is always visible within the borders of that widget (without any padding around the borders of the image).

              Do you know if its possible to do that? Thanks again for your help. http://www.new.cirrusaviation.com

              #17468
              Eric
              Customer

                Oh yes, you mean like this – http://demo.appfinite.net/guru/

                To do this, you can add this to your style.css file –

                background-attachment: fixed;

                Just add it to the widget area that you plan to use it for. I could tell you the exact line in your css to adjust, but the link you’re posting doesn’t seem to work whenever I click it.


                I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                #17469
                colinjordan
                Customer

                  Yep, I think we’re on the right track! And sorry for the mix-up…the link to the site works just fine, it’s my brain that’s the issue. I gave you the wrong extension on the URL. It actually should be http://www.new.cirrusaviation.us (not .com)

                  Would you be able to tell where I add that CSS? I also have custom CSS for quick edits as well. Thanks for your help on this, Eric. Very much appreciated.

                  #17470
                  Eric
                  Customer

                    It looks like everything is already setup. I forgot that the code is already included in this theme. If you look at line 1594 in your style.css file you’ll it –

                    .hf1,
                    .hf3,
                    .hf4,
                    .hf5,
                    .hf6,
                    .hf7,
                    .hf8,
                    .hf9,
                    .hf14 {
                    	-webkit-background-size: cover;
                    	-moz-background-size: cover;
                    	background-attachment: fixed;
                    	background-position: 50% 0px;
                    	background-repeat: no-repeat;
                    	background-size: cover;
                    }
                    

                    I don’t think that would work with the slider, but every other area you add a Background image to will automatically use that code above.

                    I looked at the image of the plane near the bottom, and it appears to be working.


                    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                    #17471
                    colinjordan
                    Customer

                      Hey Eric,

                      Actually, what I’m trying to do with that bottom image of the airplane is have the entire thing always visible within the boundaries of that widget. What the widget does right now is act as a window on an image that is actually larger than the widget boundaries, so you see the top of the plane as you scroll up, and the bottom of the plane as you scroll down.

                      What really want is to have the entire airplane visible within the widget boundaries, so the whole picture of the airplane is always visible as long as that widget is visible. It would in effect be like any other image on a web page, as it is in a fixed spot on that page and it goes up and down as you scroll up or down. It would just fit exactly into the wide homepage widget with no padding around it. I’m probably not doing a great job of explaining this, but do you see what I mean? Thanks for your patience. http://www.new.cirrusaviation.us

                      #17472
                      Eric
                      Customer

                        I’d probably remove the parallax features if that’s what you’re trying to do. They can be accessed from the front-page.php file.

                        I would also shrink the image to a smaller size. Last time I checked it was around 8000px….try and aim for a round 1800px width and 1200px height….doesn’t have to be this exactly, but start there.

                        To show the entire image height…..you’d need to add more space inside the widget area so it shows more of the background. You can do this by either adding padding for that particular widget background….or you could add a minimum height to that widget area. Both ways should work.


                        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                        #17476
                        colinjordan
                        Customer

                          Thanks for tracking with me on this! I’ve looked at it, and I think my best shot is to place the image in the Welcome Wide widget via html in the text box (it’s there now- http://www.new.cirrusaviation.us)

                          Now the only issue i have to solve is how to remove the padding around the widget so that all you see is the image without any gray around it. Here’s the CSS currently:
                          }

                          .welcome-wide .wrap {
                          margin: 0 auto;
                          overflow: hidden;
                          padding: 120px 0 60px;
                          width: 1140px;
                          }

                          .welcome-wide .widget {
                          margin: 0 0 60px;
                          overflow: hidden;
                          }

                          There’s three sets of values for padding on both welcome wide wrap and welcome wide widget. What’s the difference between the widget and wrap code sets (what does each do?) and can I remove the padding just by changing these values to zero?

                          Thanks again…

                          #17481
                          Eric
                          Customer

                            Yes you can remove the padding on the .welcome-features .wrap section by changing it to 0 –

                            .welcome-features .wrap {
                                margin: 0 auto;
                                overflow: hidden;
                                padding: 0;
                                width: 1140px;
                            }

                            You’ll also need to remove the margin that shows up at the bottom of each widget that you add as well. You can do it like this (line 1346) –

                            .welcome-features .widget {
                            	line-height: 0;
                                    margin: 0;
                            	overflow: hidden;
                            }

                            I would also add line-height: 0; to the code above so that there is no space under the images.


                            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.