Social Icons Module Position

Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Aug 07, 2013 8:38 pm
Reply with quote
Report this post
hi,

I want to use social icons module on right top side (whre is now usermenu), but when I sign in to "usermenu" position then just text link show, no icons.

so what is the easiest way to move social icons module there to work?

maybe swap position of "social" and "usermenu" module? how?

thanks for help

Image
User avatar
Fresh Boarder

GK User
Wed Aug 07, 2013 9:24 pm
Reply with quote
Report this post
Hi,
probably because that the social module position has its own class,
please check here: templates/gk_gamenews\layouts\default.php from line 180

So if you want to change positions you have to change/replace also class with <div> etc.
User avatar
Platinum Boarder

GK User
Wed Aug 07, 2013 9:27 pm
Reply with quote
Report this post
Now we have this code:
Code: Select all
    <div id="gkTopBar">
       <div>
          <?php if($this->API->modules('social')) : ?>
          <div class="social-icons">
             <jdoc:include type="modules" name="social" style="<?php echo $this->module_styles['social']; ?>"  modnum="<?php echo $this->API->modules('social'); ?>" />
          </div>
          <?php endif; ?>
          
          <?php if($this->API->modules('lang')) : ?>
               <jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
            <?php endif; ?>

          <?php if($this->API->modules('topnav')) : ?>
          <nav>
             <jdoc:include type="modules" name="topnav" style="<?php echo $this->module_styles['topnav']; ?>"  modnum="<?php echo $this->API->modules('topnav'); ?>" />
          </nav>
          <?php endif; ?>
          
          <?php if($this->API->modules('usermenu')) : ?>
          <nav id="gkTopBarUsermenu">
             <jdoc:include type="modules" name="usermenu" style="<?php echo $this->module_styles['usermenu']; ?>"  modnum="<?php echo $this->API->modules('usermenu'); ?>" />
          </nav>
          <?php endif; ?>
       </div>
    </div>



Try to use this modification
Code: Select all
    <div id="gkTopBar">
       <div>

<?php if($this->API->modules('usermenu')) : ?>
          <nav id="gkTopBarUsermenu">
             <jdoc:include type="modules" name="usermenu" style="<?php echo $this->module_styles['usermenu']; ?>"  modnum="<?php echo $this->API->modules('usermenu'); ?>" />
          </nav>
          <?php endif; ?>

          
          
          <?php if($this->API->modules('lang')) : ?>
               <jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
            <?php endif; ?>

          <?php if($this->API->modules('topnav')) : ?>
          <nav>
             <jdoc:include type="modules" name="topnav" style="<?php echo $this->module_styles['topnav']; ?>"  modnum="<?php echo $this->API->modules('topnav'); ?>" />
          </nav>
          <?php endif; ?>
          
<?php if($this->API->modules('social')) : ?>
          <div class="social-icons">
             <jdoc:include type="modules" name="social" style="<?php echo $this->module_styles['social']; ?>"  modnum="<?php echo $this->API->modules('social'); ?>" />
          </div>
          <?php endif; ?>
          
       </div>
    </div>


I'm not sure it will be perfect but should work, you can always work with css a little bit.
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 9:43 am
Reply with quote
Report this post
thanks,

fixed
User avatar
Fresh Boarder


cron