Two Questions to Mobile Theme: Exclude Category an insert Ad-Code

Posted in: Newspaper
Post count: 174

Hi,
after a little getting used to it, I have to say that Newspaper theme is great.
However, I have two questions about the mobile theme:

1.) I do not want to display two specific categories in the mobile theme. How can I exclude them?
2.) Display advertising – do I use the normal Adrotate shortcodes?

Post count: 35449

Hi,

1. If you are using the mobile theme plugin, and you have the latest version 10.2 , then you can filter the categories from the grid like this -> https://i.imgur.com/wUmuyrN.png
2. Yes, you can use normal ads, I think the Adrotate shortcodes should work too.
-> https://i.imgur.com/e6dIaOr.png

Thank you!

Post count: 174

The filter-function i’ve found. i wan’t to hide two categorys, but show all other. I’m new on css, i found a css-filter for wordpress only, not for this mobile theme.


function exclude_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( ‘cat’, ‘-6’ );
}
}
add_action( ‘pre_get_posts’, ‘exclude_category’ );

but it doesn’t work for me. Ideas?

THX

Post count: 35449

Hi,

Unfortunately for the moment this can be cover only with custom work, sorry!
The mobile theme files can be fount here -> wp-content/plugins/td-composer/mobile unfortunately I do not know a query that can remove a specific category on mobile theme.

Thank you for your understanding!

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