2 Day Special: Get our 18 extensions, 20 templates and 500+ training videos for as low as $97!  Sale ends in
Joomlashack

Show Different Joomla Template Styles on Different Pages

Different Joomla Template Styles for Different Pages

Template styles are a very powerful feature in Joomla.

Template styles allow you to assign different versions of the same template to specific pages.

In this tutorial, I'm going to show you how to assign two template styles. We'll assign one style to the home page and another style to the rest of the site.

Step #1. Duplicate the template style

When a template is installed, a single template style is generated by default. Let's make a new copy from that style:

  • Go to Extensions > Templates.
  • Check the template style you want to duplicate.
  • Click the Duplicate button.

1

Now you have two instances of the same template (aka "template styles").

2

Step #2. Assign the new template style to home

One of the template styles is assigned to all the pages, and this is marked with the yellow star.

The template style we just generated is "Not assigned" yet to any page.

3

  • Click on the name of the new style.

4

  • Rename this style to something more descriptive, such as "Your Template - Home". This makes it clear that we will use the style on the homepage of our site:

5

  • Go to the "Menu assignment" tab.
  • Check the pages where you want to apply this template style. In this example, we just choose "Home".

6

Change the settings according to your needs. This may depend on the features available on the template you're using.

Let's say you want to display a built-in slideshow from the template only on the homepage. You can change the parameters to make this possible.

  • Click "Save & close" when you're done.
  • The new style now says that it is "Assigned on 1 pages":

7

Step #3. Check that the styles are working correctly

The default template style is assigned to all the pages, except "Home", in this example.

Go to the front of the site, and check to make sure that both templates are working how you wished, and that they are assigned to the correct pages.


About the author

Valentín creates beautiful designs from amongst the tequila plants of Jalisco, Mexico. You can see Valentín's design work all over this site and you can often find him helping members in support.

 

 

Since 2005, Joomlashack has been a leading supplier of free and commercial Joomla templates, Joomla extensions, and Joomla Training.
Joomlashack.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.