Using J4 Athena Template, and need to know a few things please:
1) System Messages are displayed within the page, instead of at the Top. How can I force them to display Above the Topbar? I couldn't find a Global setting (or template) setting for System Messages.
2) What is the correct css to Hide or Show (module class or in custom.css) for Mobile, Desktop, Tablet?

I was a long-time RocketTheme user and just bought your Joomlart subscription. Just need to adjust to the code naming differences.
Thanks!

    launchpad67a Greetings!

    Thanks for using our products! Below are my answers for your questions:

    1/ The system messages in Joomla are rendered via this code:

    <jdoc:include type="message" />

    This is included in the component block - the main block of a web page in T4 based template like this JA Athena template and it's declared in this path of T4 framework: JROOT/plugins/system/t4/themes/base/html/layouts/t4/component.php. However, this 'component' block is often loaded in the middle of the layout in this template.

    If you want to show on top of page, you can remove above line of code in component.php file and paste into the head section in this file: JROOT/plugins/system/t4/themes/base/html/layouts/t4/index.php , something like this:

    These 2 files are base file in T4 framework plugin so I recommend to override them in template so your change will not be affected when updating new version of T4 framework. To do this, pls copy these files and paste into this folder in template:
    JROOT/templates/ja_athena/html/layouts/t4/

    2/ Joomla and our templates utilizes Bootstrap so you can use the associated classes in Bootstrap to hide specific elements on your site:
    https://getbootstrap.com/docs/4.0/utilities/display/#hiding-elements
    https://getbootstrap.com/docs/5.0/utilities/display/#hiding-elements

    Let me know if you need any further assitance.

    Regards

    Thanks for the details! I followed your instructions, but the messages are still appearing in the content area. I even tried adding the code to other template files, like the masthead, but no luck. Seems that some other file (t4 or joomla system) has the messages code in it.
    Although I was surprised that the messages didn't show 2 times when adding the code to another part of the site. Know what I mean?

    Any other suggestions?

    I was able to work this out. My fault. Turns out there was a setting in my component to display message inside it. I turned it off and now messages appear at the top of the page. Looks like Athena template Does show messages at the top by default.
    Thanks for your help!!

    Write a Reply...
    You need to Login to view replies.