In page-and-Items you have the option to hide the title. This will take
the title out of its containing tag, but can not prevent Joomla from
outputting the empty tag on the page.
|
|
|
hide item title in full view |
When you need to hide item-titles containers in full view use css like this: <style type="text/css">
/* css works with rhuk_milkyway, but can be addopted to whichever template */
.contentpaneopen .contentheading{
display: none;
}
</style> |
|
|
hide item title in category blog view |
To hide item titles in category blog view use css like this: <style type="text/css">
/* css works with rhuk_milkyway, but can be addopted to whichever template */
.blog .contentheading{
display: none;
}
</style> |
|
|
Hide item title for specific categories and/or items |
You can paste this code into the header of your template and config the category and/or item-id's where you want the title hidden. Then adopt the css to work with your template. <?php
//category id's where to hide title in category blog view
$categories_hide_title = array(34,36);
if(JRequest::getVar('option', '') == 'com_content' && JRequest::getVar('view', '') == 'category' && JRequest::getVar('layout', '') == 'blog' && in_array(JRequest::getVar('id', ''), $categories_hide_title) ){
echo '<style type="text/css">
/* css works with rhuk_milkyway, but can be addopted to whichever template */
.blog .contentheading{
display: none;
}
</style>';
}
//item id's where to hide title in full view
$item_full_hide_title = array(56,68);
$item_id_temp = JRequest::getVar('id', '');
if(strpos(JRequest::getVar('id', ''), ':')){
$pos_item_id = strpos($item_id_temp, ':');
$item_id = intval(substr($item_id_temp, 0, $pos_item_id));
}else{
$item_id = intval($item_id_temp);
}
if(JRequest::getVar('option', '') == 'com_content' && JRequest::getVar('view', '') == 'article' && in_array($item_id, $item_full_hide_title)){
echo '<style type="text/css">
/* css works with rhuk_milkyway, but can be addopted to whichever template */
.contentpaneopen .contentheading{
display: none;
}
</style>';
}
?> |
|
|