Joomla Components and Professional Joomla Templates

      
    | 

13th of March 2010

Joomla Backend Mastery - FREE webinar - find out more here.

PDFPrintE-mail

Change write comment style

The write comment style (or read on) is composed with a css "write_comment" class (from the joomlacomment template) and the standard "readon" (from your joomla template).

To change the style... 

The write comment style (or read on) is composed with a css "write_comment" class (from the joomlacomment template) and the standard "readon" (from your joomla template).

To change the style you just have to use the following form of css instruction :

  • .write_comment { ... }

  • .write_comment a.readon { ... }

Add those lines in the joomlacomment template css file (customize your template ) OR directly in your joomla template css file. It should be better to add them after the existing "readon" lines.

Anothers 2 possibilities (first is the best) : 


  • change the text of the readon in the joomlacomment language file (components/ com_comment/ joscomment/ language). The text is
    • _JOOMLACOMMENT_COMMENTS_0    for Read on when 0 coments
    • _JOOMLACOMMENT_COMMENTS_1    for Read on when only one comment
    • _JOOMLACOMMENT_COMMENTS_2_4 for Read on when 2 to 4 comments
    • _JOOMLACOMMENT_COMMENTS_MORE  for Read on when more than 4 comments
    • !! so much text can seems foolish for languages as english, french,.... but is important for others languages as romanian,... Word is not the same, depending on number of the object.

  

Our sponsors