Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1405451

    I’ve tried a couple ways to design a Homepage Banner that includes an image on the left and text-block on the right. My goal is to have the text-block at centered height and overlapping the image a little. I’m trying with two columns set at individual height, but I’m unable to change the height on the column with the text block. Here is an example site that I’m trying to recreate the Homepage Banner: https://fahrenkampministries.com/.

    Below is a link to my website and login credentials if needed.

    I would appreciate any guidance on how to accomplish this. Thank you!!!

    Best Regards,
    Julio

    • This topic was modified 1 year, 4 months ago by Jules. Reason: Provided more details on what I'm hoping to accomplish
    #1405557

    UPDATE:

    I found an article on the Enfold forum titled: “Overlap Columns/Elements” that is a lot like what I’m trying to accomplish, but unfortunately, I don’t fully understand how to execute it.

    Any help with interpreting this for me would be appreciated. Thanks!!!

    Best Regards,
    Julio

    #1405613

    Hi,
    Thanks for the login to your site, first I moved your two columns into a color section and gave it a custom ID homepage-banner then I gave your green box a custom class green-box the in the first column with the image in the Row Layout field I choose No Space Between Columns so the green box column would be right next to the image column.
    Then I added this css to your Quick CSS to vertically center your green box column and overlay it on the image column:

    #homepage-banner + #after_section_1.container_wrap {
    	 border-top-style: none;
    }
    #homepage-banner main.content {
    	 padding: 0;
    }
    #homepage-banner .entry-content-wrapper {
    	display: flex;
        align-items: center;
    }
    #homepage-banner .green-box {
    	left: -5vw;
        z-index: 1;
    }

    I also removed the padding from the special heading EQUIPPING CLASSES below the two columns because it seemed like too much.
    Please clear your browser cache and check.

    Best regards,
    Mike

    #1405633

    Mike,
    Thank you for your assistance and the detailed explanation…very helpful.
    It looks good on my desktop, however, on my iPhone 14 it looks like this.
    https://img.savvyify.com/images/2023/04/25/Home-2.0.jpeg
    Is there a way to have the green box displayed under the image on mobile phones?

    Thanks again for your help.

    Best Regards,
    Julio

    • This reply was modified 1 year, 4 months ago by Jules.
    #1405653

    Hi Julio,

    Please try to add this CSS code as well:

    @media only screen and (max-width:479px) {
      #homepage-banner main.content {
        padding-top: 20px;
      }
    
      #homepage-banner .entry-content-wrapper {
        flex-direction: column;
      }
    
      #homepage-banner .green-box {
        left: 0;
      }
    }

    Hope it helps.

    Best regards,
    Nikko

    #1405747

    Nikko,
    Works perfect. Thanks to you and Mike for your assistance. One more question please, how can I make the two columns take up 100% of the page width? I know the Color Section by default is a full-width element and always takes 100% width of the page container. However, with the overlapping columns, it’s not clear to me on how to achieve full page width. Thanks to anyone that can help me with this.

    Best Regards,
    Julio

    • This reply was modified 1 year, 4 months ago by Jules.
    #1405753

    Hi,
    Try this css:

    .responsive #top #homepage-banner > .container {
    	max-width: 100%;
    	padding: 0;
    }
    #homepage-banner .av_two_third .avia-image-container-inner,
    #homepage-banner .av_two_third .avia-image-container-inner img {
    	width: 100%;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1405766

    Mike,
    Thanks for your response. I’ve added the CSS, but it appears to have distorted the sizes for two columns.
    I was hoping that by going full-page width, it would look more like this homepage banner: https://fahrenkampministries.com/

    Hope this makes sense. Let me know if you have any questions or suggestions. THANK YOU!

    Best Regards,
    Julio

    #1405852

    Hi,
    Thanks for the feedback, I disabled the above css for now and to ensure that I am understanding correctly, when I look at the example page I see that the header image and overlay text box is not 100% of the page, but it is 100% of the content area, leaving a margin on both sides, note that the overlay box comes to the edge of the content area:
    Enfold_Support_1891.jpeg
    With the above css removed your header image is to the left edge of the page content area, but the overlay box doesn’t extend to the right edge of the content area, so we only need to make the overlay box bigger, correct?
    Enfold_Support_1889.jpeg
    If so I got pretty close by changing the coluoms to 4/5 & 2/5 and using this css:

    #homepage-banner .green-box {
    	left: -15vw;
        z-index: 1;
    }
    .responsive #top #homepage-banner > .container {
    	max-width: 100%;
    	padding: 0;
    }
    
    #homepage-banner .avia-image-container .avia-image-container-inner img {
    	width: 100%;
    	right: -5vw;
    }

    Enfold_Support_1893.jpeg
    try clearing your browser cache and see if this is closer, and try fine tuning the css to suit.

    Best regards,
    Mike

    #1405867

    Mike,

    Desktop view looks pretty good. I noticed that the changes made threw off the mobile layout a little. Here is a screenshot. It appears to have gone back to the layout before I added the CSS that Nikko recommended in the above thread.

    Also, I noticed that the changes made threw off the mobile layout a little.
    `IMG_0720.jpeg

    Best Regards,
    Julio

    • This reply was modified 1 year, 4 months ago by Jules. Reason: added image of mobile view
    • This reply was modified 1 year, 4 months ago by Jules.
    #1405882

    Hi,
    Glad to hear this helped, to remove this from the mobile view, try wrapping the code in a media query @media only screen and (min-width: 767px) { ... } like this:

    @media only screen and (min-width: 767px) { 
    #homepage-banner .green-box {
    	left: -15vw;
        z-index: 1;
    }
    .responsive #top #homepage-banner > .container {
    	max-width: 100%;
    	padding: 0;
    }
    
    #homepage-banner .avia-image-container .avia-image-container-inner img {
    	width: 100%;
    	right: -5vw;
    }
    }

    the (min-width: 767px) means it won’t work until at least 767px, you could change this to 1024px, 1440px or any other minimum screen size that you wish.

    Best regards,
    Mike

    #1405894

    Mike,
    Looks very good on the desktop. Your assumption is correct: “header image and overlay text box is not 100% of the page, but it is 100% of the content area”, I only need it to be 100% of the content area.

    With the above css removed your header image is to the left edge of the page content area, but the overlay box doesn’t extend to the right edge of the content area, so we only need to make the overlay box bigger, correct?

    When I look at the Header Banner image and text box both ends appear to exceed the content area below under “EQUIPPING CLASSES” and the three images. Can we align the Header Banner (image + text box) with the content below or does the content below need to be changed to take up 100% of the content area?

    It appears the mobile layout has gone back to the way it was before I added the CSS that Nikko recommended in the above thread. Here is a screenshot.

    Home-2-0-Error

    How can we correct the desktop and mobile views?
    Thank you so much!

    Best Regards,
    Julio

    #1405931

    Here is the CSS that I have in place under “Quick CSS”:

    /* Overlap Columns - Homepage Banner (Desktop) */
    #homepage-banner + #after_section_1.container_wrap {
    	 border-top-style: none;
    }
    #homepage-banner main.content {
    	 padding: 0;
    }
    #homepage-banner .entry-content-wrapper {
    	display: flex;
        align-items: center;
    }
    #homepage-banner .green-box {
    	left: -5vw;
        z-index: 1;
    }
    
    /* Overlap Columns - Homepage Banner (Mobile) */
    @media only screen and (min-width: 767px) { 
    #homepage-banner .green-box {
    	left: -15vw;
        z-index: 1;
    }
    .responsive #top #homepage-banner > .container {
    	max-width: 100%;
    	padding: 0;
    }
    
    #homepage-banner .avia-image-container .avia-image-container-inner img {
    	width: 100%;
    	right: -5vw;
    }
    }

    Here is the CSS that Nikko suggested that corrected the mobile layout originally. However, as you can see, I replaced Nikko’s CSS with the recent one that Mike suggested. As you can imagine, I’m starting to get a little confused here … LOL. I truly appreciate the help provided!

    @media only screen and (max-width:479px) {
      #homepage-banner main.content {
        padding-top: 20px;
      }
    
      #homepage-banner .entry-content-wrapper {
        flex-direction: column;
      }
    
      #homepage-banner .green-box {
        left: 0;
      }
    }

    In all of this CSS, what changes can be made for the “slight” correction to the desktop layout and to fix the mobile layout?

    Here is the outcome that I’m hoping to achieve:

    Desktop Layout
    Example-Desktop-View.jpeg

    Mobile Layout
    Fahrenkamp-Ministries.jpeg

    If this helps, I’ve provided my login credentials below.

    Please let me know if you have any clarifying questions. Any help would be greatly appreciated. Thank you.

    Best Regards,
    Julio

    • This reply was modified 1 year, 4 months ago by Jules. Reason: added screenshot for desired outcome
    • This reply was modified 1 year, 4 months ago by Jules.
    #1405948

    Hi,
    Thanks for the login, I made some adjustments for mobile, please check.

    Best regards,
    Mike

    #1405951

    THANK YOU, MIKE!!!!!
    This fixed it! Your help, patience and support is greatly appreciated – always.

    Please close this issue. Have a great day!

    Best Regards,
    Julio

    #1405953

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold. Have a great day.

    Best regards,
    Mike

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘How to Overlap Columns/Elements for Homepage Banner?’ is closed to new replies.