Possible to use an SVG logo?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Aug 22, 2016 6:13 am
Reply with quote
Report this post
Hello Gavickpro.

I've been using this theme and am very happy with it, however the PNG logo looks pixelated on some devices and would like to use an SVG logo to resolve this.

Please help me to do this?
Thanks in advance.

My site: http://m1gp.us
User avatar
Fresh Boarder

teitbite
Thu Aug 25, 2016 11:41 am
Reply with quote
Report this post
Hi

Easiest would be to edit file /layout/blocks/logo.php and replace code:

Code: Select all
<?php if ($this->API->get('logo_type', 'image')!=='none'): ?>
     <?php if($this->API->get('logo_type', 'image') == 'css') : ?>
     <a href="<?php echo JURI::root(); ?>" id="gkLogo" class="cssLogo"><?php echo $this->API->get('logo_text', ''); ?></a>
     <?php elseif($this->API->get('logo_type', 'image')=='text') : ?>
     <a href="<?php echo JURI::root(); ?>" id="gkLogo" class="text">
      <span><?php echo $this->API->get('logo_text', ''); ?></span>
        <small class="gkLogoSlogan"><?php echo $this->API->get('logo_slogan', ''); ?></small>
     </a>
     <?php elseif($this->API->get('logo_type', 'image')=='image') : ?>
     <a href="<?php echo JURI::root(); ?>" id="gkLogo">
        <img src="<?php echo $logo_image; ?>" alt="<?php echo $this->API->getPageName(); ?>" />
     </a>
     <?php endif; ?>
<?php endif; ?>


with just:

Code: Select all
     <a href="<?php echo JURI::root(); ?>" id="gkLogo">
        <img src="PATCH_TO_YOUR_SVG_LOGO" alt="<?php echo $this->API->getPageName(); ?>" />
     </a>
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.