• Resolved Austin K

    (@austingraphicandweb)


    I have these two gaps in my WordPress homepage. They are white, and cover up content underneath. I do not know how to get the content to show.

    The URL is [ redundant link removed ] and the issue is on the homepage while using a mobile device (not including tablet)

    If you go the the homepage on mobile browser and scroll down under the first slider you will see a white gap.

    Here is the code that I am using for where the white gap is on the page.

    [span6][service_box title=”Professional Staging with a Fresh Approach!!” subtitle=” With over 25 years of interior design experience in the residential and commercial world I am ready to focus on the area of staging! I recently renovated and staged a house in FL and loved the process and used new and older pieces to give a more realistic and fresh approach to the sometimes stagnant world of staging as a result!” icon=”no” text=”click “More” btn_text=”See More” btn_link=”#” btn_size=”normal” target=”_blank” custom_class=”extra”][/span6]

    ~~End Code~~

    I will post to my theme providers forum as well, but was unable to get into contact with them in reference to the last issue that I had.

    p.s. if I need to post elsewhere that is fine, I am new to the WordPress forums.

    Thanks

    • This topic was modified 5 years, 8 months ago by Austin K.
    • This topic was modified 5 years, 8 months ago by Jan Dembowski.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Yeah, there’s an unusual CSS rule that is creating a huge header, causing it to overlap that particular section.

    Try adding this CSS rule by going to Appearance → Customize → Additional CSS:

    body.home .header:before {
       height: auto;
    }
    
    Thread Starter Austin K

    (@austingraphicandweb)

    No luck. There is still a gap between the green box with content and the top slider. Thank you for suggestion. I am going to try changing the background color of a few selectors and see if I can find the right one that has to do with that section of the page to help locate the error, then move forward from there.

    Thread Starter Austin K

    (@austingraphicandweb)

    Hold on could this be a media query issue…..

    • This reply was modified 5 years, 8 months ago by Austin K.

    I didn’t see the CSS rule that I suggested.

    Just as an FYI, this is the rule that’s causing the problem:

    body.home .header:before {
       bottom:auto;
       height:1132px;
    }
    

    You could probably add a media query to set the height to auto, but I think just setting it to auto outright should be OK.

    I see a large gap in mobile view–created by numerous empty paragraph tags. See this image:
    https://snag.gy/XEC5rf.jpg

    Thread Starter Austin K

    (@austingraphicandweb)

    Hello,

    After adding css rule as suggested I not see immediate results.

    Here is an image of where I put the code which is still currently active in the css editor.

    View post on imgur.com

    If it needs to go elsewhere I can move it.

    Next, below is a screen shot I have taken of the code viewer in WordPress for this section with the white box over it.

    This first link is of the code

    View post on imgur.com

    This second link is of what the content actually looks like (just in desktop form so that you can see it without a white box over it)

    View post on imgur.com

    The GOOD NEWS though…

    Deleting all of those empty paragraphs worked and made the images show up as it should be.

    Thread Starter Austin K

    (@austingraphicandweb)

    **Update**

    I have found a temporary fix. Not economical, but is working to show content.

    Here is the link https://imgur.com/r9dCzDz

    The “box of emptiness” still exists, but I figured out how to get the content that was hidden to now show below that box.

    The problem is that you copied in the code that already exists, not the code that I suggested in my original post:

    
    body.home .header:before {
       height: auto;
    }
    

    That is, the height needs to be set to auto.

    That being said, that rule won’t work if you put it into their suggested stylesheet because the stylesheet that they provided for custom CSS comes before the theme’s main stylesheet, not after, which means any rule which uses the same selector won’t override the theme’s rule. Instead of adding the above rule to that custom CSS file, add it to WordPress’ custom CSS option by going to Appearance → Customize → Additional CSS. That should get rid of that large gap in the header.

    Thread Starter Austin K

    (@austingraphicandweb)

    Thread Starter Austin K

    (@austingraphicandweb)

    Problem solved

    .header .header_block {
    border-radius:2px
    }
    .camera_wrap {
    padding-top:30px;
    margin-bottom:-80px;
    }
    body.home .header:before {
    height:auto;
    }
    .clearfix {
    padding:10px;
    }

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Missing website content on mobile browser’ is closed to new replies.