Site logo

Archived topic

Related post not showing in the Smartphone

7 replies · Started by Mahesh on October 22, 2019

Viewing posts 1–8 of 8

Hello,
I am using the below code to show related posts under my content.
The problem is I can see the related post on the desktop but when I view it on my smartphone, there is no related post section.
You can check one of my links in the URL section.
What is the solution for this problem and if possible, is there any chance to reduce the grey section around the related post?

Here is the code I am using:

Hi there,

can you link me to a post where i can see the Related Posts section - i checked a couple but couldn't see it.

I have provided the link in the URL section.
You can visit that link via desktop & smartphone to see the difference.
Ensure to look at the related post section just below the content before the comment section.

I checked that link and cannot see the Related Posts section or any markup in the code.
Maybe a server caching issue

Ok, its a problem from my side.
Actually I set the login users as "logged in users" in the element section. So that is why only I can see the related post on the desktop and not on the mobile.
Anyways, could you please tell me how can I reduce the extra size of the grey section from the sides of related posts.
Or
Increase the related post thumbnail size so that the gap is filled.
You can check the post URL.

Just edit the padding property in this CSS:

.wpsp-related-posts {
    background-color: #f2f3f4;
    padding: 64px; /* reduce padding here */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

Thank You. Problem solved.

You're welcome

This archived topic is closed to new replies.