Tagged: logo
-
AuthorPosts
-
January 17, 2018 at 6:43 pm #1087321
hi,
I would like to move the logo to the useful position on the left.
What should I do?
Thanks!Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 18, 2018 at 3:23 am #1087396Hi
In this template the logo is on the top and if you will move it in the main nav there will be less space for menu items.
Here is the process:
Open templates/ja_magz_ii/tpls/blocks/header.php file
Find and cut the logo code<!-- LOGO --> <div class="col-xs-12 <?php echo $logosize ?> logo"> <div class="logo-<?php echo $logotype, ($logoimgsm ? ' logo-control' : '') ?>"> <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>"> <?php if($logotype == 'image'): ?> <?php if ($catclass) { ?> <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logopath ?>" alt="<?php echo strip_tags($sitename) ?>" /> <?php } else { ?> <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" /> <?php } ?> <?php endif ?> <?php if($logoimgsm) : ?> <?php if ($catclass) { ?> <img class="logo-img-sm" src="<?php echo JURI::base(true) . '/' . $logopathsm ?>" alt="<?php echo strip_tags($sitename) ?>" /> <?php } else { ?> <img class="logo-img-sm" src="<?php echo JURI::base(true) . '/' . $logoimgsm ?>" alt="<?php echo strip_tags($sitename) ?>" /> <?php } ?> <?php endif ?> <span><?php echo $sitename ?></span> </a> <small class="site-slogan"><?php echo $slogan ?></small> </div> </div> <!-- //LOGO -->
Now open mainnav.php file
paste the code after line 32You also need to add the parameter in mainnav.php file to call logo
if ($catclass) { $logopath = 'images/joomlart/'.$catclass.'/logo.png'; $logopathsm = 'images/joomlart/'.$catclass.'/logo-small.png'; } // get params $sitename = $this->params->get('sitename'); $slogan = $this->params->get('slogan', ''); $logotype = $this->params->get('logotype', 'text'); $logoimage = $logotype == 'image' ? $this->params->get('logoimage', T3Path::getUrl('images/logo.png', '', true)) : ''; $logoimgsm = ($logotype == 'image' && $this->params->get('enable_logoimage_sm', 0)) ? $this->params->get('logoimage_sm', T3Path::getUrl('images/logo-sm.png', '', true)) : false; if (!$sitename) { $sitename = JFactory::getConfig()->get('sitename'); }
Here : http://prntscr.com/i1zqsj
Now you can also add custom classes for the logo and override the style vai custom.css file to adjust the logo and menu item.
Regards
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by franco54 6 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum