I can see there's an option to choose a layout:

enter image description here

How can I add new custom layout with template override?

I have tried several way for eg. html/layouts/mylayout.php, html/com_content/category/default_mylayout.php. But none is working. So, how should I do?


You need to add a xml file along with the php file.

Check out the docs : https://docs.joomla.org/Layout_Overrides_in_Joomla

  • the link din't help me – Bhojendra Rauniyar Dec 21 '18 at 14:40
  • Please try to rename your files. mylayout.php to mylayout_blog.php mylayout_blog.xml – mixahlos Dec 21 '18 at 14:46
  • not working.... – Bhojendra Rauniyar Dec 21 '18 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.