1. ukfish1
  2. Sherlock Holmes
  3. Commercial Templates
  4. Monday, 22 November 2021
  5.  Subscribe via email
How can I sue an SVG image as the logo. It doesn;t sho up in the media manager when I try tyo set the logo image.

Thanks, Paul
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Paul

For security reasons, Joomla does not handle SVGs. Your best option is probably to hard code the SVG in to the header area of your template. This can be done pasting your SVG code in to your templates logo.php (../templates/[YourTemplate]/inc/layouts/logo.php), replacing the relevant code

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
thanks. So do I need to chnage anything otehr than the image in bold below

Paul

<div id="logo" class="logo">
<a href="<?php echo $this->baseurl ?>" title="<?php echo $sitename; ?>">
<?php if($this->params->get('logoImage') == '1') : ?>
<?php if($this->params->get('logoimagefile') == '') : ?>
<img class="logo-image primary-logo-image" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/images/logo.svg" alt="Logo" />
<?php elseif($this->params->get('logoimagefile') != '') : ?>
<img class="logo-image primary-logo-image" src="<?php echo $this->baseurl ?>/<?php echo $logoimagefile; ?>" alt="Logo" />
<?php endif; ?>
<?php if($this->params->get('mobilelogoimagefile') != '') { ?>
<img class="logo-image mobile-logo-image" src="<?php echo $this->baseurl ?>/<?php echo $this->params->get('mobilelogoimagefile'); ?>" alt="Mobile Logo" />
<?php } ?>
<?php else : ?>
<div class="logo-text"><?php echo $this->params->get('logoText'); ?></div>
<?php if($this->params->get('sloganText') != '') { ?>
<div class="logo-slogan"><?php echo $this->params->get('sloganText'); ?></div>
<?php } ?>
<?php endif; ?>
</a>
</div>
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
sorry Ciaran, would you be u=able to update this asap pleasae.

Thanks, Paul
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Paul

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com along with a copy of your SVG and I will add the logo for you. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok