1. acrowe
  2. Commercial Templates
  3. Saturday, 25 July 2020
  4.  Subscribe via email
Found an issue in the Jasmine Template. If you do not have anything in header-1 (or 2 module) the social icons will not show
index.php segment:

<div class="wrapper960">
<?php if ($this->countModules( 'header-1' ) || $this->countModules( 'header-2' )) : ?>
<div class="header_top">
<?php if ($this->countModules( 'header-1' )) : ?>
<div class="header-1">
<jdoc:include type="modules" name="header-1" style="mod_simple" />
</div>
<?php endif; ?>
<?php if ($this->countModules( 'header-2' )) : ?>
<div class="header-2">
<jdoc:include type="modules" name="header-2" style="mod_simple" />
</div>
<?php endif; ?>
<?php require("inc/layouts/social_icons.php"); ?>
</div>
<?php endif; ?>


Since I didn't want anything in those modules (presently) but wanted the social icons to load I updated the segment to always load the header_top and social segment:

<div class="wrapper960">
<div class="header_top">
<?php if ($this->countModules( 'header-1' ) || $this->countModules( 'header-2' )) : ?>
<?php if ($this->countModules( 'header-1' )) : ?>
<div class="header-1">
<jdoc:include type="modules" name="header-1" style="mod_simple" />
</div>
<?php endif; ?>
<?php if ($this->countModules( 'header-2' )) : ?>
<div class="header-2">
<jdoc:include type="modules" name="header-2" style="mod_simple" />
</div>
<?php endif; ?>
<?php endif; ?>
<?php require("inc/layouts/social_icons.php"); ?>
</div>


Maybe a display yes/no on the social icons settings page and then include like the modules would work instead (and be cleaner).

Just passing this along.

Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Thank you for your post and for bringing this to our attention! We have just updated the Jasmine template, resolving this issue. For details on updating your template may I suggest the following article.. https://joomla51.com/tutorials/joomla-basics/updating-your-joomla-template

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok