Changes in Theme Mobile

Posted in: Newspaper
Post count: 11

Hi,

I need to modify the name of the “Featured” category used for the 3 news items that are in the “Theme Mobile”.

The problem is that the news disappears when changing the name of the category.
How can I do it without the news disappearing?

Thanks.

Post count: 23312

Hi,

If you want to change the FEatured category from Mobile Theme, you need to make some change into the core, like here -> https://www.screencast.com/t/lj0DjbbHdaN

Thanks.

Post count: 11

Thanks Catalin.
I’ll try to do it.

Post count: 11

Hi,

I have had problems with the images have disappeared.
I have restored the site from a backup, installed Theme Mobile again, but the problem still continues.
I have deleted and disabled the cache plugin but the problem persists.
What I can do?
site folhanobre.com.br

Website

Post count: 11

Sorry,

I modified a code before the backup.
it’s already working.

Thanks.

Post count: 11

Hi,
I have tried to change the Featured category as indicated by the image:
http://folhanobre.com.br/wp-content/uploads/2019/03/2019-03-22_1333.png

I have also changed the name to the new category here:
http://folhanobre.com.br/wp-content/uploads/2019/03/config-01.jpg

But it has not worked, what else should I modify?

Thanks.

  • This reply was modified 7 years by tec99. Reason: Error image
Post count: 23312

Hi,

In that section, are talking about the type of your sort order like FEatured, Latest, ASC, DESC and not the slug of the category. If you want to do this, you need to add a category_ID parameter. Please check the following useful topic from here -> https://forum.tagdiv.com/topic/mobile-theme-featured-posts/

Thank you!

Post count: 11

Hi Catalin,

Thanks for the reply.

I made the modification in the file by placing the category ID as follows:

<?php
//show mobile grid only if Featured cat exists
if ( get_cat_ID(TD_FEATURED_CAT) !== 0) {
echo do_shortcode('[td_block_big_grid_mob_1 category_id="29" sort="featured"]');
}
?>
<?php the_content(); ?>

But when wanting to use only the posts in the category (id=29) are not shown in the Theme Mobile.

I’m forgetting to do something?

Thanks.

Post count: 23312

Hi,

Probably, you do not have posts from that category added in the Featured and that’s why does not work. Try to change the sort order to the latest and check the results. -> https://www.screencast.com/t/J6zTtGq7YlU

Thank you!

Post count: 11

Hi Catalin,

Thanks, now running everything as expected.
I am very grateful for your help.

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