What is profile

Introduction


A profile is a custom set of theme settings which can define the style, content and layout of your site. The default profile defines the default settings for the entire website. You can create new profiles and assign it to any different template, any language. This allows you to load different theme settings on different pages.

New profiles inherit all settings from the default profile, so you just need to apply the settings you want to change. One example where we use the profiles are the different theme variations we deliver with each theme. Also special module layout behavior is done using profiles.

Now, in your Joomla backend, select Extensions > Template manager > zo2_hallo - Default to get started with new Profile function of Zo2 Framework. Profile tab is underneath the Menu Bar of Zo2 settings

profile-overview

1. The default Profile


In the general theme settings you find a parameter called Default Profile. Here you choose the profile which will be loaded on all your pages. By default it is set to the profile called default. Each theme has a default profile and it can not be deleted. If you want to load another newly created profile as default for all your pages you can select it here. Zo2 will load your new profile automatically.

default_profile

2. Profile Variations


Other profiles can only override some settings defined within the default profile. This profile will only override the default theme used by the template with the orange theme, so as you can see, there is no need to repeat the entire profile code if the other settings are not changed.

2. 1. Step 1: Create a new profile


New profiles can be created in the profile theme settings by clicking the Save As button which is available right next to the “profile dropdown” list”.

new_profle

The first time you click the button, a window will appear allowing you to create a new profile.

  • Now just need to enter a name for your new profile and Save it.

new_profile_1

Below you can see all settings you can control and override with your new profile. By default all values are inherited by the default profile.

new_profile_2

2. 2. Step 2: Create new template for new profile


Each style includes its own theme, layout, logo, navigation … When creating new style, you can configure those things and override the default style. To do that, first create new template by duplicating your current defaut template.

  • Go to Extensions > Template Manager > Duplicate your current default template

dupliate-theme

  • When new template created, open it and choose your desired profile to use.

profile

2. 3. Step 3: Create different layouts for new profile


As said before, new profiles inherit all settings from the default profile, so you just need to apply the settings you want to change. Now of course this is right for Layout Builder settings.

You can refer the guide to use Layout Builder on this same documentation system in purpose of adding or editing your new profile’s layout builder.

2. 4. Step 4: Custom Style for new profile


Profile option from Zo2 Framework is very useful allowing you to create preset styles and customization. With Preset Style, you can assign a certain style to your theme or change the preset style such as Background, Header, Text, Link…

To select a preset style and create your desired style, in your new Layout Profiles tab, please scroll down the page you’ll see Style section.

This more detailed tutorial to custom style will cover this topic in depth.

2. 5. Step 5: Assign any template to any menu item


Assign any profile to any menu item directly from your theme configuration with just a few clicks.

menu-assignment

2. 6. Final Step


After all the changes with the new profile, one very important action you have to take, is clicking the Save button to apply all to your Joomla site.