There are many ways to make a
pda version of a blog created on the
WordPress engine. Plug-ins and stuff ... But it didn’t suit me, as it’s impossible to customize any functions or appearance in them! Rummaging in this code can be very long, but in the end there will be no sense.
I had to do it simply. On the subdomain hang the same engine, with the same base, only with a different skin, which would be convenient to read from the screen of a smartphone or communicator.
I found nothing on the Internet on this topic ... Well ... I had to hope for my strength :)
“If you suffer for a long time, something will work out.” Popular wisdom says ... I share with the people a short instruction on how to attach the pda (wap) version to the subdomain, but leave two bases for two blogs:
')
To do this, you need to make a
complete copy of WP, along with plugins for the subdomain. Put a light theme in a folder with the same name as the main one.
yoursite / wp-content / themes / best_theme
pda.your_site / wp-content / themes / best_themeNext, configure
wp-config.php on the subdomain, or rather add lines:
define('WP_SITEURL', 'http://pda.towap.info');
define('WP_HOME', 'http://pda.towap.info');
Naturally, the connection to the database settings are the same.
Folder uploads can not copy, but simply create a symbolic link to it.
Thus this problem is solved ... What happened can be observed here:
linkAnd, if anyone needs it, a link to a simplified version of the theme to figure out what's what:
download the theme