By C Lippert on Tuesday, 28 January 2014
Posted in General Issues
Replies 6
Likes 0
Views 1K
Votes 0
Hi!
I've got a few of the modules for Easy Blog assigned to my left column, but I'd like to have all of the titles styled with a different color than the template dictates. I tried to assign a header class in a few of them but the class doesn't seem to be getting applied to the h3 tag. I attached some screenshots of the source code generated and the parameters on the module.
Thanks,
CL
Hello C Lippert,

Is it possible provide us with your site URL, Joomla backend and FTP access so we can help you check on this CSS issues? Please advise.
·
Tuesday, 28 January 2014 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Well, I found a workaround although if you'd like to actually see it and try it out I can do that.
·
Tuesday, 28 January 2014 02:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Also if you get it to work with the Tags module I can do the rest. I can't give you ftp access so see if you can do it with just the admin access.
Thanks!
·
Tuesday, 28 January 2014 02:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello C Lippet,

Sorry for late reply to this,
Thanks for your Joomla backend details, i also have tried in my local site (using protostar template), i also can't assign the header class from module backend field, it seems like the Joomla issues, what i do is go to this template modules.php file JoomlaFolder\templates\protostar\html\modules.php,

function modChrome_well($module, &$params, &$attribs)
{
if ($module->content)
{
echo "<div class=\"well " . htmlspecialchars($params->get('moduleclass_sfx')) . "\">";
if ($module->showtitle)
{
echo "<h3 class=\"page-header\">" . $module->title . "</h3>";
}
echo $module->content;
echo "</div>";
}
}

Replace with,

function modChrome_well($module, &$params, &$attribs)
{
if ($module->content)
{
//add this headerClass
$headerClass = $params->get('header_class');
echo "<div class=\"well " . htmlspecialchars($params->get('moduleclass_sfx')) . "\">";
if ($module->showtitle)
{
//pass in here
echo "<h3 class=\"page-header\" ".$headerClass.">" . $module->title . "</h3>";
}
echo $module->content;
echo "</div>";
}
}

But you also need to go template file and see which file is similar with this. Hope this help.
·
Tuesday, 28 January 2014 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for this. I have a custom template and will add this in.
CL:)
·
Thursday, 30 January 2014 04:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello C Lippet,

I'm glad that your issue is solved If you have any problems please don't hesitate to ask us.

Thanks!
·
Thursday, 30 January 2014 05:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post