Help with the mobile plugin

Posted in: Newspaper
Post count: 101

Hello I have recently started using the tagdiv composer and deleted visual composer. Currently the mobile theme is active. How to hide the featured image displayed at the top of each pages for a particular category. I’m looking for a simple CSS solution. I hear that the official AMP plugin will be released soon. What about the mobile plugin after that. Is it mandatory to use both the plugins or just the AMP. I have another blog that requires AMP support. Can I wait for the official AMP plugin or the official AMP plugin?

Thanks in Advance.

Post count: 22421

Hello,

Yes indeed amp implementation in our theme is on they way, but for the moment i can;t say for sure if it will work together with the mobile theme or not. It is still in development and a final decision was not taken in this regard.
I’m not sure what featured images you are referring to for categories though. A category does not have a featured image in our theme. Please provide an example of the immage you are referring to so I can provide the proper code.

Thank you!

Post count: 101

Thanks for the reply. I meant the featured images on the posts that belongs to a particular category in mobile theme.

Post count: 23312

Hello Pradeep Augustine,

You should use such a bit of CSS code if you want to hide the featured images for such a post from a certain category. Please use the Inspector browser, take the specific category of your featured image. Below I gave you a simple example how you should be done.

@media (max-width:768px){
.category-lifestyle .td-post-featured-image{
display:none;
}
}

The result can be found here -> https://www.screencast.com/t/T0Oj6Yqk

Thanks for your understanding!

Post count: 101

Hello, Thank you for the reply. As i mentioned the Mobile plugin is active. The code you have sent works fine when the mobile plugin is not active. When the mobile plugin is active, I dont see any category class. Only .td-post-featured-image is available. When I target this class and hide, it is hiding featured image everywhere. I want it for the posts in particular category only when the mobile plugin is active.

Post count: 23312

Hello Pradeep Augustine,

I have checked your website in mobile mode and the category is there as you can see here
-> https://www.screencast.com/t/5gRbpWVgMLkN Try again the code for your desired category, clear all the caches and check the results.

Thanks for your understanding!

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