Difference between revisions of "Template style"

From Joomla! Documentation

(Add version tag)
(Marked this version for translation)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{version|2.5,3.1}}
+
<noinclude><languages /></noinclude>
{{Chunk:Template style}}
+
{{Chunk:Template_style/<translate><!--T:4--> en</translate>}}
 +
<translate><!--T:5-->
 +
'''See also''': [[J3.x:Switching templates#Assigning more than one template for the Front-end|How to assign more than one template to the Frontend]]
 +
</translate>
  
== Assigning template styles to menu items under Template Manager ==
 
 
Go to '''Extensions''' > '''Template Manager''', choose a template style by checking the box to the left of its name and then click on the '''Edit''' button. Alternatively, simply click the name of the template style to edit it.
 
 
On the '''Edit Style''' screen, check the menu items that should display the chosen template style and click on the '''Save''' button.
 
 
Go to the fronted of your website and refresh the page to view the modifications.
 
 
[[File:02_template-manager_editing-styles.png|thumb|800px|center|alt=The image on the left shows the Getting Started page displaying the Beez2 template style. The image on the center shows the Atomic template style being assigned to the Getting Started menu item. The image on the right shows the Getting Started page now with Atomic template style.|The image on the left shows the Getting Started page displaying the Beez2 template style. The image on the center shows the Atomic template style being assigned to the Getting Started menu item. The image on the right shows the Getting Started page now with Atomic template style.]]
 
 
 
== Applying template styles to menu items under Menus ==
 
 
Go to  '''Menus''' > '''Menu Name''', choose a menu item by checking the box to the left of its name and then click on the '''Edit''' button. Alternatively, simply click the name of the menu item to edit it.
 
 
On the '''Edit Menu Item''' screen, in '''Template Style''', choose the desired template style and click on the '''Save''' button.
 
 
Go to the fronted of your website and refresh the page to view the modifications.
 
 
[[File:03_menu-manager_edit-menu-item.png|thumb|640px|center|alt=Atomic template style being applied to the Getting Started Menu item.|Atomic template style being applied to the Getting Started Menu item.]]
 
 
<noinclude>[[Category:Landing Pages]][[Category:Glossary]][[Category:Templates]][[Category:Template Management]]</noinclude>
 
<noinclude>[[Category:Landing Pages]][[Category:Glossary]][[Category:Templates]][[Category:Template Management]]</noinclude>

Latest revision as of 06:51, 14 October 2021

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Kiswahili • ‎Nederlands • ‎català • ‎eesti • ‎español • ‎français • ‎hrvatski • ‎português do Brasil • ‎български • ‎русский • ‎日本語


Template style is a feature introduced in Joomla 2.5 that allows users to assign different template styles to individual menu items. By default, Joomla assigns a template style to all menu items upon installation. A yellow star indicates the default template style in use. A default template style can be partially or completely overridden by assigning different template styles to the desired menu items in order to obtain a different look for their respective pages.

A template style can be assigned to menu items one of two ways.

  • Template manager Extensions  Templates  Styles
  • Editing a menu item under Menus  [Menu Name]  [Menu item]


See also: How to assign more than one template to the Frontend