1. ralphd
  2. Commercial Templates
  3. Tuesday, 26 March 2013
  4.  Subscribe via email
I have added style-box to Module Class Suffix on a module in side column-b but it makes no difference. I have tried adding the following css to nexus.css and also custom css without luck.

.module_style-box .module, .style-box .module {
background-color: rgba(0, 0, 0, 0.043);
border: 1px solid rgba(0, 0, 0, 0.15);
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05) inset;
border-radius: 4px 4px 4px 4px;
overflow: hidden;
margin-bottom:10px;
}
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ralph

Would you have a URL to an example of the module which you are trying to add the class suffix styling?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Sorry Ciaran, I should have posted that info. It is http://www.marysvillecommunity.net/ and involves the subscription module in the center of the right column.

Ralph
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ralph

Try opening your templates modules.php (../templates/j51_executive/html/modules.php) and replacing its entire contents with the following..


<?php
/*================================================================*\
|| # Copyright (C) 2010 Joomla51. All Rights Reserved. ||
|| # license - PHP files are licensed under GNU/GPL V2 ||
|| # license - CSS - JS - IMAGE files are Copyrighted material ||
|| # Website: http://www.joomla51.com ||
\*================================================================*/
defined('_JEXEC') or die('Restricted access');

function modChrome_mod_standard($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>

<div class="module_<?php echo $params->get('moduleclass_sfx'); ?>">
<div class="module">
<div class="module_padding">
<?php if ($module->showtitle) : ?>

<?php
$title = explode(' ', $module->title);
$title_part1 = array_shift($title);
$title_part2 = join(' ', $title);
?>
<div class="module_header"><div>
<h3><?php echo $title_part1.' '; ?><?php echo $title_part2; ?></h3>
</div></div>
<?php endif; ?>
<div class="module_content">
<?php echo $module->content; ?>
</div>
</div>
</div>
</div>
<?php endif;
}

?>

<?php
function modChrome_mod_spanhead($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="module<?php echo $params->get('moduleclass_sfx'); ?>">
<?php if ($module->showtitle) : ?>

<?php
$title = explode(' ', $module->title);
$title_part1 = array_shift($title);
$title_part2 = join(' ', $title);
?>

<h3><span><span class="first-word"><?php echo $title_part1.' '; ?></span><?php echo $title_part2; ?></span></h3>
<?php endif; ?>
<div class="module_content">
<?php echo $module->content; ?>
</div>
</div>
<?php endif;
}
?>


That should do it however you may need some further adjustments. If so just get back to me and we will sort you out.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran, that did it ok and everything else seems ok at this stage. I must tell you, I really like Metropolis and am very tempted.
Thanks again for the quick service.

Ralph
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Great..

Just to explain.. with our recent templates that include module variations our modules are surrounded by an extra div (.module) which the suffix styling is applied. Changing the modules.php with the above simply adds this extra surrounding div.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • 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