Mobile theme stopped working

Posted in: Newspaper
Post count: 72

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)

Post count: 72

4) wp_debug mode shows no errors.

I’ve emailed you the website URL and the credentials to access it.

Post count: 72

Hello again,
since I can’t afford to loose traffic on my website I tried re-uploading the main theme files (maybe there was a customisation which broke the mobile theme) just for a test. After that the mobile theme started loading correctly. Cheers!

Post count: 22421

Glad you found the issue.Let us know if you encounter further problems.
Thanks.

Post count: 72

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.

Post count: 22421

Hello,

Well if your modification affects the mobile theme, you might try the plugin implementation for the Facebook comments and leave comments.php intact.

Thank you!

Post count: 72

Do you mean installing a plugin to use Facebook comments?

Post count: 22421

Yes. I’m not sure how you implemented it and what you customized in order to implement the Facebook comments but there is a plugin that does this automatically so you can give that a shot.

Thanks.

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