Changing Logo header image for different media types - Joomla! Forum - community, help and support


my current logo/header scales nicely protostar template option fluid_layout set on.

but need display less complicated logo/header image on handhelds. i'm wandering how change index.php file protostar template test media type , load header image different media types?

ie.

if (@media handheld) load alternate image 1 set in template

else run normal.

thanks

code: select all

// logo file or site title param
if ($this->params->get('logofile'))
{
   $logo = '<img src="'. juri::root() . $this->params->get('logofile') .'" alt="'. $sitename .'" />';
}
elseif ($this->params->get('sitetitle'))
{
   $logo = '<span class="site-title" title="'. $sitename .'">'. htmlspecialchars($this->params->get('sitetitle')) .'</span>';
}
else
{
   $logo = '<span class="site-title" title="'. $sitename .'">'. $sitename .'</span>';
}

i hope find answer this.
i'm struggling same issue.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support