I'm trying to hide the title of a module.
I have changed the admin setting but the title is still displayed in the front end. In the database, the
showtitle field is set to
I have experienced this with certain modules, and certain positions in certain templates. It's almost certainly either a) the module ignoring the 'showtitle' parameter, or checking it incorrectly, or b) the template / template framework not pulling the title through. For example, in the Warp framework used by YooTheme (a popular theme provider with its own module rendering chain), the 'logo' position won't render the module title (as they make a guess that you don't want the module title shown above your logo image).
If you update the question with the template and module it'd be easier to investigate.
It will depend on which module it is, and how it is rendered. I had this problem with the search module in Joomla 3.3. I hid the title in the backend, but it was still displaying in the front end. I had to do an "output override" to be able to hide the title. I copied the files in
modules/mod_search/tmpl to my template (e.g.
templates/mytemplate/html/mod_search) and then added code to respect the value of
if($module->showtitle=="0") $output = ""; else $output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> ';
Why this is not the case in the core version is beyond me, but I suppose, since it's open source, I could change it myself ...
Each module allows its title to show or hidden as an option in the module manager.
NOTE: That is the only place to configure it.
The value is stored in the column "showtitle" of "#__modules".
Hopefully this setting is respected by the module and template that renders it.
Joomla core renders the module according to its style. The rendering according to style
can be found in (administrator/)templates/$template$/html/modules.php.
Each style has its own function with the prefix modChrome_. Not all styles have code for the title.
Which style is applicable depends on the JDOC in the template and the optional setting for the module.
Also noticed some inconsistent coding:
if ((bool) $module->showtitle)
if ($module->showtitle != 0)
that may lead to unexpected results