Difference between revisions of "How to add a tooltip for a standard form field like Title, Name, E-mail"

From JReviews Documentation
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Edit the theme file of the submit form:
 
Edit the theme file of the submit form:
*<span style="color: blue">\com_jreviews\jreviews\views\themes\{theme_name}\listings\create_form.thtml</span>
+
*<span style="color: blue">\com_jreviews\jreviews\views\themes\default\listings\create_form.thtml</span>
  
  
 
Use this code to include a tooltip:
 
Use this code to include a tooltip:
 
<source lang="php">
 
<source lang="php">
<span class="jr_infoTip" title="This is the tooltip text"></span>
+
<span class="jrIconInfo jr-more-info"></span><div class="jrPopup jrHidden">Tooltip text goes here</div>
 +
 
 
</source>
 
</source>
  

Latest revision as of 04:04, 4 July 2013

Edit the theme file of the submit form:

  • \com_jreviews\jreviews\views\themes\default\listings\create_form.thtml


Use this code to include a tooltip:

<span class="jrIconInfo jr-more-info"></span><div class="jrPopup jrHidden">Tooltip text goes here</div>

Add the code inside the <label> tag of any form field