Hi,
On the Clarity template, is it possible to have a logo displaying alongside the text and slogan? The standard template config only allows one or other to display.
thanks,
Liam
- liamgannon
-
- Commercial Templates
- Wednesday, 03 July 2013
- Subscribe via email
Hi Liam
Sorry to say there is no simple solution. To render both you can replace the following in your templates header.php (../templates/j51_clarity/php/layouts/header.php)..
With..
This will render both image and text however the text might be pushed out of view. At this point you can send us a URL to your site and we will put together the CSS needed to render both image and text next to each other.
Ciarán
Sorry to say there is no simple solution. To render both you can replace the following in your templates header.php (../templates/j51_clarity/php/layouts/header.php)..
<div id="logo">
<div class="logo_container">
<?php if($this->params->get('logoImage') == '1') : ?>
<h1 class="logo"> <a href="/index.php" title="<?php echo $siteName; ?>"><span>
<?php echo $siteName; ?>
</span></a> </h1>
<?php else : ?>
<h1 class="logo-text"> <a href="/index.php" title="<?php echo $this->params->get('siteName'); ?>"><span>
<?php echo $this->params->get('logoText'); ?>
</span></a> </h1>
<p class="site-slogan"><?php echo $this->params->get('sloganText'); ?></p>
<?php endif; ?>
</div>
</div>With..
<div id="logo">
<div class="logo_container">
<h1 class="logo"> <a href="/index.php" title="<?php echo $siteName; ?>"><span>
<?php echo $siteName; ?>
</span></a> </h1>
<h1 class="logo-text"> <a href="/index.php" title="<?php echo $this->params->get('siteName'); ?>"><span>
<?php echo $this->params->get('logoText'); ?>
</span></a> </h1>
<p class="site-slogan"><?php echo $this->params->get('sloganText'); ?></p>
</div>
</div>
This will render both image and text however the text might be pushed out of view. At this point you can send us a URL to your site and we will put together the CSS needed to render both image and text next to each other.
Ciarán
- more than a month ago
- Commercial Templates
- # 1
Hi Ciarán,
The two pieces of code you posted appear to be the same, can you have a look again?
thanks,
Liam
The two pieces of code you posted appear to be the same, can you have a look again?
thanks,
Liam
- more than a month ago
- Commercial Templates
- # 2
My apologies Liam.. I forgot to edit the second snippet of code. It should now be correct.
Ciarán
Ciarán
- more than a month ago
- Commercial Templates
- # 3
Thanks Ciarán,
I've updated the header.php file now. The site is published at http://www.elally.ie.
Regards,
Liam
I've updated the header.php file now. The site is published at http://www.elally.ie.
Regards,
Liam
- more than a month ago
- Commercial Templates
- # 4
Hi Ciarán,
I've played around with the CSS myself and I've managed to get the logo text and slogan to line up as I want it using
Thanks again for your help,
Liam
I've played around with the CSS myself and I've managed to get the logo text and slogan to line up as I want it using
h1.logo-text a {
top: -100px;
left: 220px;
}
p.site-slogan {
font-size: 14px;
top: -100px;
left: 220px;
}Thanks again for your help,
Liam
- more than a month ago
- Commercial Templates
- # 5
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »