0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

How to remove the "There are no items to display" on the frontpage

    • Chew Hoe Ang's Avatar

    How to remove the "There are no items to display" on the frontpage

    Posted 17 years 9 months ago
    • I got one site that I does not want to show news on the frontpage. But there is always this "There are no items to display" on the frontpage. How to remove it?
  • Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 9 months ago
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 9 months ago
    • You will need to add a condition in the template's index.php to disable mosmainbody from loading if the user is on the frontpage. Find the statement in the template file and change it to the following:
      <?php if ($option != "com_frontpage") : ?>
      &nbsp; &nbsp;  <?php mosMainBody(); ?>
      <?php endif; ?>

      This will ensure the content (mosmainbody) only loads if the user is *not* on the site's homepage.
    • Toolbox Digital | Dribbble | Forrst
    • Chew Hoe Ang's Avatar

    Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 9 months ago
    • Thanks. it work excellently.

Time to create page: 0.055 seconds