-
AuthorPosts
-
December 27, 2010 at 7:33 pm #157927
Hi, i new member here! 🙂
which one is the class sufix for the “body” position (homepage) in the demo web?
http://joomlart.com/demo/#templates.joomlart.com/ja_rasite
(the “Featured Articles” class sufix)I try ” title-brown” in first item on the mainmenu, but nothings happen, buh!
Thanks a lot!!
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 28, 2010 at 7:03 am #368882It is content area which uses styling hardcoded in template
If you wish to use similar styling for modules, You can enter in title-brown in module class suffix text area of specific module
Reference tutorial for entering suffix:
http://docs.joomla.org/Tutorial:Using_Class_Suffixes_in_Joomla!_1.5#Module_Class_SuffixNote:: Please dont give in space as given there
December 28, 2010 at 11:02 am #368916Mmmm, maybe i dont explain very well, i need the page class sufix for the first item in mainmenu…not for modules and this isn’t in template style default.
I send you a pm with photos…
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 28, 2010 at 5:33 pm #368963I assume that it isnt appearing from page class suffix as there is no external suffix being applied to specific menu item
Do you wish to have same title styling applied for title in category blog layout menu type ?
December 28, 2010 at 5:48 pm #368965Yes! 🙂
I had but i change the menu type for “Section blog layout” and i lose the stile 🙁
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
December 28, 2010 at 7:01 pm #368982Go to templates/ja_rasite/html/com_content/category/blog.php file and
1) Change this::
// Add span to module title
$title = $this->escape($this->params->get(‘page_title’));
$pos = strpos($title, ‘ ‘);
if ( $pos !== false ) { $title = “<span><span>” . substr($title, 0, $pos+1) . “</span></span>” . substr($title, $pos+1); }
else { $title = “<span><span>” . $title . “</span></span>”; }
?>to
// Add span to module title
$title = $this->escape($this->params->get(‘page_title’));
$pos = strpos($title, ‘ ‘);
if ( $pos !== false ) { $title = “<strong class=”first-word”><strong>” . substr($title, 0, $pos+1) . “</strong></strong>” . substr($title, $pos+1); }
else { $title = “<strong class=”first-word”><strong>” . $title . “</strong></strong>”; }
?>2) Change this::
<h1 class=”componentheading<?php echo $this->escape($this->params->get(‘pageclass_sfx’)); ?>”>
to
<h1 class=”fp-componentheading<?php echo $this->escape($this->params->get(‘pageclass_sfx’)); ?>”>
This would get you desired title styling for category blog layout 🙂
Please ensure to take backup of file before making these changes
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by karbo 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum