test

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #1087396

    Hi
    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 32

    You 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

    franco54 Friend
    #1087445

    thank you, I will try this solution

Viewing 3 posts - 1 through 3 (of 3 total)

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