Is there a way for me to exclude the custom header include function in the mobile mode? I have a very wide banner there and would like to exclude it in a mobile view.
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
and replace with if (defined('MOBILE_VIEW')) {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px), only screen and (min-device-width : 480px) and (max-device-width : 800px) and (orientation : landscape), only screen and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5)
{
[do stuff...]
}
While executing query 'INSERT INTO cpg14x_config (name, value) VALUES ('theme_switch_mobile_theme', 'water_drop')' in plugins/theme_switch/codebase.php on line 141is trying to insert a setting into the config file that already exists... Either already inserted during a prior failed install, or not properly uninstalled..
mySQL error: Duplicate entry 'theme_switch_mobile_theme' for key 'PRIMARY'