Hello,
the mobile theme is not working anymore and I don’t know the reason. I’ve already tried the following steps with no results:
1) disabling all the plugins (WP Super Cache included) except the VC and mobile theme plugin
2) clearing my browser’s cache
3) switching to the main theme (from the child theme)
Hello,
after investigating a bit more here is what I found:
the file which broke the mobile theme is mobile/comments.php. I had to edit it in order to set-up the Facebook comments system.
The content of the comments.php file is below:
<div class="comments" id="comments”>
<h4 class="block-title" style="margin-top: 0px;"><span>Leave a comment</span></h4>
<div class="fb-comments" data-width="100%" data-order-by="social" data-href="<?php the_permalink(); ?>" data-numposts="5" data-colorscheme="light"></div>
</div>
The code above started creating problem on mobile devices since the 7.8 version of the main theme:
– if caching plugin is enabled the mobile theme loads also the sidebar of the main theme (desktop mode) at the bottom of the homepage and sometimes also at the bottom of the posts.
– if caching plugin is disabled the mobile version works correctly with the code above.
Since it is difficult to debug the theme with the caching plugin enabled, would you please tell me how can I structure the comment.php in order to use the Facebook comments system.
Thanks.