Logo position for Coporate 2.5.1

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Jan 09, 2012 8:10 am
Hello,
I am using template Corporate 2 (latest version 2.5.1) on Joomla 1.7.3.
I need to replace the current logo by a module but I can't find the "logo" position in the dropdown menu list. Is it a bug? If not, I was thinking of:
1/ Setting the Logo type to None from the admin panel
2/ Create a "customlogo" position to replace the existing logo position.
If this is a good approach, would anyone help me write the correct code? (I am not a developper...).
;)
Thank you in advance,
Stephan
User avatar
Fresh Boarder

GK User
Mon Jan 09, 2012 8:38 am
Hi,

The logo of this template is not a module, it's loaded in a block of the template.

- File: \templates\gk_corporate2\layouts\blocks\nav.php

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

If you want to load a module position instead of the logo, let's say "mypos", you can change the code to:
Code: Select all
<?php if( $this->modules('mypos') ): ?>
   <div id="gk_mypos">
         <jdoc:include type="modules" name="mypos" style="<?php echo $this->module_styles['mypos']; ?>" />
   </div>
   <?php endif; ?>
User avatar
Platinum Boarder

GK User
Mon Jan 09, 2012 5:16 pm
Problem solved, thank you very much!
:D
User avatar
Fresh Boarder

GK User
Tue Jan 10, 2012 9:13 am
You are most welcome, Stephan. Feel free to let me know if you need any other helps.

Have a nice day,
User avatar
Platinum Boarder


cron