Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu not displaying on 404 error page #3289

Closed
paulinohio opened this issue Nov 30, 2024 · 5 comments
Closed

Menu not displaying on 404 error page #3289

paulinohio opened this issue Nov 30, 2024 · 5 comments

Comments

@paulinohio
Copy link

I don't understand why the menu is unformulated of the 404 error page. The navigation is inherited from the base outline, which seems to work on all the other pages.

https://neilrisko.com/DELETE/xx

Screenshot 2024-11-30 at 9 19 30 AM

Thanks

@paulinohio
Copy link
Author

I believe this is a CSS issue in the error.php but I'm not sure what to change to get to reference my custom CSS.

$className = DIR . '/custom/includes/gantry.php';
if (!is_file($className)) {
$className = DIR . '/includes/gantry.php';
}

@N8Solutions
Copy link

@paulinohio Check out this answer from @mahagr on an old thread from 9 years ago.
#918 (comment)

Joomla doesn't load JQuery in error pages. In fact it doesn't load any CSS or JavaScript -- those just get dropped out by Joomla itself. Also no content, plugin output or modules will work from error page.

The issue is that Joomla has special Document type error which gets used instead of html. The document type makes sure that no output from Joomla gets leaked into error page.

Because of above reasons the only things that work from the error page are the particles and atoms, which are not Joomla specific.

Since you are using DJ MegaMenu, your menu won't work on the error page. You can always contact the developer of DJ MegaMenu and see if he has a workaround for you but since Joomla is the issue here I think you'll need to find another way like creating a basic menu using the Gantry 5 menu system to be used only on the error page if you wanted. All you really need is to provide a link for the visitor to be able to reach the home page easily. I would say that is your best, easiest, and quickest option. It's not worth trying to figure out a workaround.

Hope this has helped!

@paulinohio
Copy link
Author

Thanks for the information. I did end up just removing all nav menus.

@N8Solutions
Copy link

@paulinohio You're welcome. Can you please mark this as closed to help out the Gantry 5 team?

@paulinohio
Copy link
Author

Do you know if you can use a joomla extension as the mobile off canvas menu? Do you just make a module instance or or module position where the off canvas particle goes or is there more to it? I feel like I tried it a while back and it didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants