CSS styling not working on Mobile

Posted in: Newspaper
Post count: 18

CSS styling for background color for text in articles is not working on mobile. It was pasted in Theme File Editor. However, the styling is only working on desktop but not mobile. The mobile theme plugin has been activated. How do I get it work on both desktop and mobile?

Post count: 27744

Hi,

If you made a custom CSS and you use a mobile theme, then you need to add the code in the Theme panel -> Mobile Theme -> Custom code -> custom css.

Thank you!

Post count: 18

The Theme Panel does not have the Mobile Theme tab as you mentioned in your previous reply, and therefore I couldn’t find this path “Theme panel -> Mobile Theme -> Custom code -> Custom CSS”. The theme panel only has a tab named “Custom Code”. Under Custom Code tab, there’s Custom CSS and Advanced CSS, but none of the code options specifies CSS for Mobile Theme. Tried putting code under Custom CSS but still only worked for desktop and not on Mobile Theme.

Post count: 35449

Hi mungerald, to check if you are using the mobile theme plugin please check in Newspaper > plugin if the plugin is active – https://i.imgur.com/ehfGwtU.png it is then you need to go to the theme panel and scroll until you’ll see the mobile theme section – https://i.imgur.com/Rya5Hdg.png
Thank you!

Post count: 18

I finally found the mobile theme tab, put my CSS code but still not working on mobile. Only working on PC.
Here is the code
.tips-div {
background: #cef8d8;
padding: 30px;
margin-top: 50px;
margin-bottom: 50px;
border-radius: 4px;
}

Post count: 27744

Hi,

Maybe you need a strong path, please let me know what element you want to add to the style, blocks, or in the post. Please provide screenshots and the link to your website.

Thank you!

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