Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • John Wesley Brett Moderator
    #139052

    To change the article date format on the FRONT PAGE from the template’s European styling of: “Tue – 08 Feb” to an American format of “Tue – Feb 08”

    NOTE: This is NOT in the usual “en-GB.ini” file (there are date formats there, no impact on the front page formatting)

    Two files to change – same code in each line:
    ja_opal/html/com_content/frontpage/default_item.php line 70
    ja_opal/html/com_content/category/blog_item.php – line 90

    Change from:


    <?php echo JHTML::_('date', $this->item->created, '%a - %d <span class="month">%b</span>'); ?>

    To:


    <?php echo JHTML::_('date', $this->item->created, '%a - <span class="month">%b</span> %d'); ?>

    Have fun.
    John.

    Arvind Chauhan Moderator
    #297126

    It helped. Thanks for the tip.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Arvind Chauhan 15 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum