Rabu, 3 September 2014
Breaking News
Home » Articles » Enable Theme Option for Subdomain in WordPress Multisite

Enable Theme Option for Subdomain in WordPress Multisite

Some time ago, I had a void and seldom update this blog. Currently I’m building a social networking like facebook, its name MySmapalas Network. You can see it here. This site uses WordPress multisite (formerly known as WordPress MU). I really enjoy the advantages and convenience when using this site.

If you want to install a plugin or theme, you need to do is just find and then install it directly without uploading it first. Only with 1 or 2 click’s, plugin or theme will be installed.

Multisite wordpress wordpress differ in general. You can create a subdomain or subdirectory but only use one machine in the main directory (root directory). Indeed, there is an error when we use a particular theme on a subdomain then Theme Option be lost.

Indeed, there is an error when we use a particular theme on a subdomain then Theme Option be lost.

Now you don’t worry anymore, because the error can be corrected by replacing the word edit_themes be switch_themes. Usually the word can be found in functions.php on each theme.

For example, if you use Harmony theme. You can search for words:

add_theme_page($themename.” Options”, “”.$themename.” Options”, ‘edit_themes’, basename(__FILE__), ‘mytheme_admin’);

then change it to:

add_theme_page($themename.” Options”, “”.$themename.” Options”, ‘switch_themes’, basename(__FILE__), ‘mytheme_admin’);

Now you can see in each subdomain, Theme Option can be used again.

About Anas

Hanya seorang blogger saja!

Leave a Reply

Your email address will not be published. Required fields are marked *

*


1 + = 5

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>