Show related posts in mobile theme

Posted in: Newspaper
Post count: 1043

Hi. So I was trying to make some changes to the mobile plugin but I still cannot figure how to show related posts in the theme files. I can see there is a code in the files to show the posts, but I wonder if they are hidden with CSS? How do I show the related posts? Second, I would suggest you make the mobile plugin folder inside the theme to be compatible with the child theme (for those who want to make style the appearance of their mobile sites).

Post count: 1043

@Catalin any solution?

Post count: 20688

Hi,

There already is a related articles section displayed in the post page when using the mobile theme plugin
https://www.screencast.com/t/bd6hg2DjW
The settings from theme panel will apply to this section on mobile as well
https://www.screencast.com/t/XHIrAmk24

Indeed the mobile theme files cannot be customized in a child theme, at the moment. If you want to customize files from it, you will have to modify the main files.

Thanks

Post count: 1043

I don’t know why the same option is not appearing when I activate the mobile theme. I had to deactivate it and go back to the responsive theme. I am using the crypto news demo. See this screenshot http://prntscr.com/ihbcm3 (I selected related posts to show by category in Theme Panel)

Post count: 20688

Maybe you removed it previously with custom code or modification in the child theme. Check the mobile theme custom code section, check the mobile theme files
https://www.screencast.com/t/R7N3rwfGL

Post count: 1043

No, I did not remove the code and it is still there. See this http://prntscr.com/ihrvkh (I only added some code to show my custom previous and next post and a telegram subscription box).

Post count: 20688

It seems there is a code which also hides the related articles on mobile, without using the mobile theme
https://www.screencast.com/t/2Yyn6MjhlbC
I couldn’t say exactly where that code is coming from, check again the custom CSS code sections, and advanced CSS section in the phones field.

Post count: 1043

I figured it out. I went through my custom code one by one and found out it was this code .single .td_block_wrap that I had set to ‘hidden’ in mobile devices but I’m not sure what element of the theme I was trying to hide.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.