Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Image + Text as a logo
(1 viewing) (1) Guest
Userguide, Report bugs, New Ideas...
  • Page:
  • 1

TOPIC: Image + Text as a logo

Image + Text as a logo 11 years, 9 months ago #4275

  • tomgb
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Is it possible to have both a image and text as a logo on my website. like the image logo on the left then at the right of the image having my site name and slogan at the side.

here is the url http://2378-cybi.sqn.ac/

its not much yet but its still in progress.
Last Edit: 11 years, 9 months ago by tomgb.

Re: Image + Text as a logo 11 years, 9 months ago #4284

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Thomas Baddeley,

Please open the yt_template.class.php file in "your_site/templates/sj_news25/includes", finding:

function getLogo(){
		$app = JFactory::getApplication();
		if ($this->getParam('logoType')=='image'):  
			if($this->getParam('overrideLogoImage')!=''):
				if( strpos($this->getParam('overrideLogoImage'), '/') ){
					$url = $this->getParam('overrideLogoImage');
				}else{
					if(is_file($this->templateurl().'images/'.$this->getParam('sitestyle').'/'.$this->getParam('overrideLogoImage'))){
						$url = $this->templateurl().'images/'.$this->getParam('sitestyle').'/'.$this->getParam('overrideLogoImage');
					}else{
						$url = $this->templateurl().'images/'.$this->getParam('overrideLogoImage');
					}
				}
			else:
				if(is_file($this->templateurl().'images/'.$this->getParam('sitestyle').'/logo.png')){
					$url = $this->templateurl().'images/'.$this->getParam('sitestyle').'/logo.png';
				}else{
					$url = $this->templateurl().'images/logo.png';
				}			
			endif;	
		?>
            <h1 class="logo">
                <a href="index.php" title="<?php echo $this->getParam('logoText'); ?>">
                	<img alt="<?php echo $this->getParam('logoText'); ?>" src="<?php echo $url; ?>"/>
                </a>
            </h1>
        <?php					
		else:
            $logoText = (trim($this->getParam('logoText'))=='') ? $app->getCfg('sitename') : $this->getParam('logoText');
            $sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('sloganText');	?>
            <h1 class="logo-text">
                <a href="index.php" title="<?php echo $app->getCfg('sitename'); ?>"><span><?php echo $logoText; ?></span></a>
            </h1>
            <p class="site-slogan"><?php echo $sloganText;?></p>
        <?php 
		endif;
	}


change to:

	function getLogo(){
		$app = JFactory::getApplication();
		//if ($this->getParam('logoType')=='image'):  
			if($this->getParam('overrideLogoImage')!=''):
				if( strpos($this->getParam('overrideLogoImage'), '/') ){
					$url = $this->getParam('overrideLogoImage');
				}else{
					if(is_file($this->templateurl().'images/'.$this->getParam('sitestyle').'/'.$this->getParam('overrideLogoImage'))){
						$url = $this->templateurl().'images/'.$this->getParam('sitestyle').'/'.$this->getParam('overrideLogoImage');
					}else{
						$url = $this->templateurl().'images/'.$this->getParam('overrideLogoImage');
					}
				}
			else:
				if(is_file($this->templateurl().'images/'.$this->getParam('sitestyle').'/logo.png')){
					$url = $this->templateurl().'images/'.$this->getParam('sitestyle').'/logo.png';
				}else{
					$url = $this->templateurl().'images/logo.png';
				}			
			endif;	
		?>
            <h1 class="logo">
                <a href="index.php" title="<?php echo $this->getParam('logoText'); ?>">
                	<img alt="<?php echo $this->getParam('logoText'); ?>" src="<?php echo $url; ?>"/>
                </a>
            </h1>
        <?php					
		//else:
            $logoText = (trim($this->getParam('logoText'))=='') ? $app->getCfg('sitename') : $this->getParam('logoText');
            $sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('sloganText');	?>
            <h1 class="logo-text">
                <a href="index.php" title="<?php echo $app->getCfg('sitename'); ?>"><span><?php echo $logoText; ?></span></a>
            </h1>
            <p class="site-slogan"><?php echo $sloganText;?></p>
        <?php 
		//endif;
	}


Thanks
Ticket System | Join our Clubs to download our extensions and templates

Re: Image + Text as a logo 11 years, 9 months ago #4285

  • tomgb
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Thank you very much it works.
  • Page:
  • 1
Time to create page: 0.23 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes