php - Change header image based on multisite -


i have multisite 2 sites. english , spanish version of site. right logo on header.php static.

<div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.png" alt=“racing logo” /></a></div> 

how can make dynamic there different logo each one?

what function call? there allows check multisite on if statement or similar?

try this,

<?php $language = substr($_server['http_accept_language'], 0, 2); switch ($language ){ case "fr":     //echo "display french language text in page";     include("index_fr.php");//include check session fr     break; case "es":     //echo "display spanish language text in page";     include("index_it.php");     break; case "en":     //echo "display english language text in page";     include("index_en.php");     break;         default:     //echo "display english language text in page";     include("index_en.php");     break; } ?> 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -