[Solution] Mobile theme support with Multisite Installation

Posted in: Newspaper
Post count: 12

Hello,

The Mobile theme plugin doesn’t compatible with the multisite installation of WordPress. But here is a 3 lines code to make Mobile Theme Plugin fully compatible with WordPress multisite installation.


if (is_multisite()) {
$main_dir_path = $main_theme->theme_root . '/themes' . get_template_directory();
}

Copy above code and open the wp-content/plugins/td-mobile-plugin/td_mobile_theme.php file in your editor, the find 196 number line and paste the right after this “$main_dir_path = $main_theme->get_template_directory();” line.

Here is an example: http://i.imgur.com/ITO0P1a.png

I shared this code because TagDiv doesn’t concerned about the multisite feature I think. I hope this code will save your day 😀

Post count: 20688

Hi,

Thank you for posting this solution. It could be useful in similar situation for other users.

Thanks

Post count: 4

Worked for me. Thanks man Aminul Islam.

Post count: 4

You’re a life saver Aminul!

Post count: 18283

Update

On 9.8 Version the code is located at row 426: https://www.screencast.com/t/qzQk5bD4

Thank you !

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