ShareThis plugin on WordPress MU - default in all blogs - php

I have one instance of Wordpress Multiuser and need ShareThis plugin to be automatically activated in all new created blogs.
I've seen a post:
Plugins placed in wp-content/mu-plugins are automatically enabled for all blogs in the system. They cannot be turned off by the users.
When putting the plugin files into root blog (/plugins/ folder), the plugin is functional, but when putting it into /mu-plugins , the plugin is not working.
What else do i need to do to make it work?

Plugins put in /mu-plugins cannot be in folders.
/mu-plugins can only contain plugin files like what-ever-plugin.php.

The mu-plugins directory will not read plugins in a subfolder, so your ShareThis plugin must be modified to individual file to work.
Any plugin files in a subfolder will be ignored unless included in the primary plugin file.

Related

Blank page "The active theme is broken. Reverting to the default theme." on WordPress Vagrant

I have a blank page when accessing my local, however I can login fine into /wp_admin and change the theme. In the appearances menu, I have:
The active theme is broken. Reverting to the default theme.
How can I solve this?
Some info hopefully to help you understand. As this is a Vagrant install, in the site root, I have:
/web
/assets
In web, we have the Wordpress install. web/wp/wp_content/themes contains all default Wordpress themes i.e. twentythirteen. when set, these themes work ok.
In assets, I have the actual custom theme, which needs to remain in that folder, as Gulp regenerates the theme and /less and /js files in case of changes. This is the theme which displays as broken in the admin.
The custom theme is referenced with a file in web/app/themes.
Figured it out.
If anyone comes across this issue, update your VirtualBox to latest. Theme's symbolic link was generating back slashes to the path like ..\..\ and it should have been ../../assets/theme_name

override wedevs-dokan-plugin template file from theme wordpress

I'm using the wedevs-dokan-plugin (wedevs.com/dokan) for a WordPress frontend user store, which allows sellers to manage their store from the frontend.
I want to override one of the template files of this plugin. The file which I want to override is located at:
plugins/wedevs-dokan-plugin/templates/product-edit.php
And to override this file, I copied the file and made some changes, putting this new file in the theme directory like this:
themes/mytheme/wedevs-dokan-plugin/product-edit.php
But this isn't working for me. After that I also tried:
themes/mytheme/wedevs-dokan-plugin/templates/product-edit.php
But that's also not working.
Is there any way to override the plugin files from within a WordPress theme?
themes/mytheme/wedevs-dokan-plugin/product-edit.php
Instead of "wedevs-dokan-plugin" the directory name should be "dokan" and you can only edit the "templates" directory files of this plugin.
So, the new directory will look like these.
themes/mytheme/dokan/store.php
themes/mytheme/dokan/dashboard/dashboard.php
Thanks

How to use must use plugin in wordpress?

Friends,
I know this question asked before but i cannot find them . I want to move all plugin in to must use directory.
In wordpress blog also have answer but i can't understand them .
Any one suggest link to use must use plugin for all plugin
The mu-plugins directory will not read plugins in a subfolder, so all plugins must be individual files (as per "plugin-name.php" file).
This main plugin file is what will include additional files that exist in a subdirectory. Any plugin files in a subfolder will be ignored unless included in the primary plugin file.

Wordpress themes not generating a proper homepage on a server folder

I am using a wordpress theme which I have modified a bit, based on the "Revera" Wordpress theme.
I have used it on other sites and it has worded fine. However, I have always installed it in the root of the domain. This time I have installed it on http://www.gas-sense.co.uk/blog
It isn't generating the usual homepage layout ( see http://www.georgeedwards.co )
Just wondering if the themes are typically setup to trigger the homepage layout? and if that is defined in a particular section of the php ?
The root folder is not a problem, you probably didn't set up the site url correctly, read the docs bellow
https://codex.wordpress.org/Changing_The_Site_URL

A wordpress plugin upload guideline

I want to upload my wordpress plugin on wordpress.org.
Now the structure of my plugin is
redirect (this is the plugin foldername)
redirect.php (it is the main file with all the logic)
read.txt (this is read me file )
My question is that do I need to add more directories or any other files in this folder to be accepted on wordpress.org.
Can anybody guide how to go farward from here and upload my plugin successfully on wordpress.org but I am concerned if I need to add any new files into my main plugin folder.
All informations which you need, you will find here https://wordpress.org/plugins/add/ (check left sidebar links)
Your read.txt file should be renamed to readme.txt and has this structure:
https://wordpress.org/plugins/about/readme.txt

Categories