Mobile child theme

Posted in: Newspaper
Post count: 2

Hi!

In the theme panel I disabled the footer. On desktop the footer is correctly removed.
But on my smartphone the footer is still showing.

After looking in Newspaper/mobile/footer.php I saw that the td-mobile-footer-wrap div isn’t surrounded by a condition like in Newspaper/footer.php

if (td_util::get_option('tds_footer') != 'no') {
td_api_footer_template::_helper_show_footer();
}

I’ve added this condition around the div in the Newspaper/mobile/footer.php and now it’s working nicely.

I tried to copy and add modification in Newspaper-child/mobile/footer.php hopping it will override the parent mobile footer. But that’s not the case.

Is there a way to do it through a mobile child theme?

Post count: 22421

Hello,

Well the mobile theme is a plugin and plugins cannot be handled through the child theme. You will have to make the modifications in the main theme though. or you can simply hide the footer with css like so:
.td-mobile-footer-wrap, .td-mobile-sub-footer-wrap{
display:none!important;
}

You can add the code in the theme panel-> mobile theme-> custom code section

Thank you!

Post count: 2

Thank you. Then I will stay with the parent theme modification.

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