Top Menu


How to use themes
Wednesday, 14 August 2013 13:37
How to use themes 4.7 out of 5 based on 7 votes.

How to use themes

Themes is a new feature. Now you can override views of the component within theme. Not, as previously, within the template.

All necessary files are in 'themes' folder. All you have to do to make a new theme is copy and rename folder 'default'. New theme will be visible on the list in component configuration.

You can also create folder 'views' and copy particular component views to this directory.

For example:

You want to change layout of 'category table view'. All you have to do is:

  1. create directory themes/my_theme/views/items/
  2. copy file views/items/tmpl/default.php to themes/my_theme/views/items/
  3. change the layout in the copied file

You may wonder why there is no 'views' folder in default theme. It's because component views in this theme are take directly from main folder of the component.


To make customization simpler, 'item view' is now divided into blocks easy to move.



Found this article interesting? Subscribe for more.
Subscribe to the Telegram bot / Subscribe to the Messenger Bot
Or share this article with your friends.

User Rating:  (7)



Ultimate classified ads solution for Joomla.

Learn more

Footer Menu