Chunk

Pagina class achtervoegsel

From Joomla! Documentation

Revision as of 11:32, 24 March 2014 by Lara (talk | contribs) (Created page with "Pagina Class achtervoegsel is een parameter in Joomla! Menu-items. Het kan ingesteld worden in het Menu-item [Bewerken] venster bij "Paginaweergave". Het instellen van deze pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pagina Class achtervoegsel is een parameter in Joomla! Menu-items. Het kan ingesteld worden in het Menu-item [Bewerken] venster bij "Paginaweergave". Het instellen van deze parameter laat Joomla! ofwel een nieuwe CSS class toevoegen of de bestaande CSS class wijzigen van elementen voor deze specifieke Menu-item weergave.

When Joomla! generates a page, it automatically creates pre-defined CSS classes to allow styling of the page. For example, a page might have the element

<div class="componentheading">

To create a new class, enter the parameter with a leading space. For example, entering a space plus "myNewClass" will create a new CSS class called "myNewClass" and it will be inserted as a class for elements in that Menu Item. In this case the example above will be changed to

<div class="componentheading myNewClass">

To change the name of the existing class, enter in the parameter without a leading space. For example, entering "_mySuffix" (no leading space) will cause the HTML to changed to

<div class="componentheading_mySuffix">

Generally, it is recommended to use a leading space to create a new class. This way, CSS styling for this component that uses the standard class names will continue to work. You can use the new class name to add any desired styling to the component without needing to re-create all of the existing CSS code. Note that, if you create a new class name, make sure it has a unique name and doesn't conflict with any existing class names.

See also: Using Class Suffixes, Using the Page Class Suffix in Template Code

Languages