Rqgg Page 1/1

costmarysmileInternet και Εφαρμογές Web

7 Δεκ 2013 (πριν από 3 χρόνια και 4 μήνες)

148 εμφανίσεις

How to hide the article at the home page in joomla 2.5
Asked by
on 2013-05-02T08:38:03-04:00
How to hide the article at the home page in joomla 2.5?

Some times you want to have your home page with out showing an empty article.

Best Answer
Answer by
on 2013-05-02T08:38:18-04:00
That is not a problem if you dont have any specific background in your template.

Otherwise you can use jquery to hide the div that contains the main body.

You can add the folowing java script to your template index.php before the tag

In this sample i also want to make active the page forum thats why i am using a switch insted of if.

var j = jQuery.noConflict(); var currentPage =
; switch (currentPage) { case '/':
j('#rt-mainbody').hide(); break; case '/forum': j(".item213").addClass("active"); break; }

May 2nd, 2013
Week 18, 2013
May, 2013
jQuery Plugin Syntax/ JavaScript Syntax?
jquery image preload vs javascript
Plain Javascript variable to Jquery
How to execute javascript only when jquery overlay is invoked?
How to convert javascript inline code to jQuery?
javascript does not work in IE and Firefox after jquery 1.8.3 upgrade
Jquery Mobile - Javascript persisting when navigating to another page
After adding foundation Javascript, jquery cookie does no longer work
Unwrap selected element Javascript or Jquery
Convert a jQuery AJAX call to javascript
View Online
Page 1/1