• I have a weird issue that just started this weekend. I posted a blog over the weekend but when I pulled it up in mobile only about half of the post is there. the whole article shows up on the desktop but wont fully show up in mobile. there isnt anything on the published page that looks out of the ordinary except the text just ends where it shouldnt.

    Ive tried deleting the post and redoing it. ive tried using updraft plus and restoring to before this post. I’ve tried writing a completely new post and it is doing it to all new posts now and i cant for the life of me figure out why it is just cutting off my post like that in mobile. I have used wordpress for 5 years and pretty familiar with it and no matter what I try, including restoring my site to a previous date before this happened, doesnt work. Has anybody else had this issue?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are you able to share a page with this problem so I can test from my end?

    Thread Starter carguy2021

    (@carguy2021)

    i took the post down so my readers dont read only a partial post. i’ve looked at it from 2 different mobile devices thinking it was my phone but it does it on both. it doesnt seem to affect older posts, just new posts at a certain word count or lenght it seems

    Thread Starter carguy2021

    (@carguy2021)

    actually i just looked at a long older post and it is cutting of the longer, older posts too.

    Thread Starter carguy2021

    (@carguy2021)

    it looks like it is cutting of my blog posts that are 1600 words or longer but just on mobile. everything was working fine 3 days ago.

    Thread Starter carguy2021

    (@carguy2021)

    so far if anybody else is having this issue, it looks like the ad inserter plugin is causing it

    I am having a similar issue here:
    https://leftybeauty.com/blog/lefty-beauty-how-to-make-your-blowout-last/

    works fine in desktop mode

    Thread Starter carguy2021

    (@carguy2021)

    i found it was the Ad Inserter plugin causing it for some reason. Once I deactivated the plugin everything was back to normal like it was last week. I hated to deactivate the plugin as I loved the ad inserter plugin, it was very easy to use and worked quite well, but after the latest update I noticed this on my longer posts so i had to turn it off for now. I will check it after a future update and turn it back on if it is working again.

    @leftybeauty:

    Please note that this is a support forum. All new posts go into the unanswered topics queue and that’s where support volunteers go to pick questions to answer. When a question is marked resolved or deemed sufficiently dealt with, the support volunteer may unsubscribe from the topic to avoid receiving spam.

    Also, given the diverse nature of WordPress websites (different themes, plugins, hosting, even content!), hardly do two websites with a similar problem end up having the same cause and the same solution.

    So the best way to ensure your issue gets attention quickly is to always start a new topic to ask your own question!

    But since you have my attention already…

    I am having a similar issue here:
    https://leftybeauty.com/blog/lefty-beauty-how-to-make-your-blowout-last/

    I didn’t have a chance to look at @carguy2021’s website to know what’s really happening in the code, but in your case, it’s some custom CSS code you have on your site that’s limiting the display on smaller screens to a fixed height. (I can’t say though whether this CSS code is coming from a plugin, your theme, or something you manually entered.)

    Below you’ll see some blocks of code I copied from the head section of the page you gave. You’ll see at various responsive breakpoints the selector .u-section-1 .u-post-details-1 which contains your the page’s actual content has a fixed height (eg height: 715px for the max-width: 1199px breakpoint).

    This effectively limits the heights of the page to the values specified, hence the problem you’re having.

    In fact, the page doesn’t just get cut at the bottom: if you open the site on a desktop computer, scroll down to the middle of the page, and resize the browser window to make it small like a mobile screen, you’ll see the page would be cut at both the top and bottom… and the footer will jump to the middle of the screen!

    So how do you fix this?

    The proper solution is to NOT define any heights for your page’s main content at all… and let the content automatically flow to fill whatever height it needs.

    But if you MUST force a height (and I see absolutely no reason why you should), only use a minimum height (min-height) as the first block of code below uses for desktops (which is why you don’t have this problem on desktops).

    
    .u-section-1 .u-post-details-1 {
      min-height: 375px;
      margin-top: 60px;
      margin-bottom: -10px;
    }
    
    @media (max-width: 1199px) {
      .u-section-1 .u-post-details-1 {
        height: 715px;
      }
      .u-section-1 .u-image-1 {
        margin-left: initial;
      }
    }
    @media (max-width: 991px) {
      .u-section-1 .u-sheet-1 {
        min-height: 782px;
      }
      .u-section-1 .u-post-details-1 {
        margin-bottom: 60px;
        height: 662px;
      }
      .u-section-1 .u-image-1 {
        height: 423px;
        margin-left: initial;
      }
    }
    @media (max-width: 767px) {
      .u-section-1 .u-sheet-1 {
        min-height: 722px;
      }
      .u-section-1 .u-post-details-1 {
        height: 602px;
      }
      .u-section-1 .u-container-layout-1 {
        padding-left: 10px;
        padding-right: 10px;
      }
      .u-section-1 .u-image-1 {
        height: 354px;
        margin-top: 9px;
        margin-left: initial;
      }
    }
    @media (max-width: 575px) {
      .u-section-1 .u-sheet-1 {
        min-height: 656px;
      }
      .u-section-1 .u-post-details-1 {
        height: 536px;
      }
      .u-section-1 .u-image-1 {
        height: 275px;
        margin-left: initial;
      }
    }
    

    @carguy2021

    I hated to deactivate the plugin as I loved the ad inserter plugin, it was very easy to use and worked quite well, but after the latest update I noticed this on my longer posts so i had to turn it off for now. I will check it after a future update and turn it back on if it is working again.

    The fact that this is only happening beyond a certain word count or length means the underlying problem is similar to what I explained above: a fixed height is being defined for the post content on your site, likely by the plugin you mentioned.

    If you were to be able to share a public URL where the problem is evident (with the plugin active), I could take a look and get you some simple CSS code as a workaround so you can continue to use the plugin.

    @gappiah Thank you very much for your detailed analysis!

    I am still confused as to why this is happening. I never modified any CSS within my theme. My Theme that I used works well for on our front page with no issues with the footer moving to the middle of the page when minimizing the screen and it works fine on mobile.

    The Posts Page and Posts are created through WordPress’ tool (not Nicepage, which I used to create our landing page)

    Should I be creating a Posts Page through Nicepage instead of WordPress?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘wordpress cutting off posts in mobile’ is closed to new replies.