Gestion des feuilles de style

Rédigé par inconnu 4 commentaires

PluXml possède une utilisation intelligente des feuilles de style.
Voici un tour d'horizon.


Le style

Le style correspond au nom du dossier dans le dossier themes




Pour modifier le style,rendez-vous dans l'administration / paramètres / option d'affichage et choisissez le style dans le menu déroulant "choix du thème"



Pour associer une feuille de style en fonction du style, vous devez:

  • avoir un fichier CSS qui porte le même nom que le style (dans notre cas monTheme.css)
  • coller ce code entre les balises du fichier header.php de votre thème:

Plus d'infos sur la fonction template() ici

Le mode

Le mode correspond au mode d'affichage :D.
On en compte 6 principaux: home, static, article, categorie, archives et tag.

Pour associer une feuille de style en fonction du mode,

  • avoir un fichier CSS qui porte le même nom que le mode
  • coller ce code entre les balises du fichier header.php de votre thème:

Plus d'infos sur la fonction mode() ici

Le template

Le template est celui que l'on choisi grâce au menu déroulant présent dans l'administration des articles, des pages statics et des catégories.



Pour associer une feuille de style en fonction du template,

  • avoir un fichier CSS qui porte le même nom que le template (dans notre cas article-template01.css)
    Note: le nom doit être de la forme article-nom.php sans majuscule.
  • coller ce code entre les balises du fichier header.php de votre thème:



Exemple du contenu du dossier "MonTheme"


4 commentaires

#1  - webhinditime a dit :

I'm glad to hear that you appreciate good article writing. Is there a specific topic you are interested in learning more about, or do you have any questions on a particular subject? I am here to help you with any information or guidance you need.

I'm glad that you appreciate good writing <a href="https://www.runningofficial.com/">Running Official</a>
. Is there a particular topic or question you would like to discuss or learn more about? I am here to assist you with any information or guidance you need.


Take <a href="https://www.runningofficial.com/2023/01/navi-loan.html">Loan</a> from <a href="https://www.runningofficial.com/2023/01/navi-loan.html">Navi</a> in 10 minutes, that too at low <a href="https://www.runningofficial.com/2023/01/navi-loan.html">Interest</a>
<a href="https://www.runningofficial.com/2023/01/pathaan-movie-download.html">Pathaan Movie</a>
<a href="https://www.runningofficial.com/2023/01/7starhd-movies-download.html">7starHD Movie</a>

Répondre
#2  - nitu a dit :

I'm glad to hear that you appreciate good article writing. Is there a specific topic you are interested in learning more about, or do you have any questions on a particular subject? I am here to help you with any information or guidance you need.

I'm glad that you appreciate good writing <a href="https://www.runningofficial.com/">Running Official</a>
. Is there a particular topic or question you would like to discuss or learn more about? I am here to assist you with any information or guidance you need.


Take <a href="https://www.runningofficial.com/">Loan</a> from <a href="https://www.runningofficial.com/">Navi</a> in 10 minutes, that too at low <a href="https://www.runningofficial.com/">Interest</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>
<a href="https://www.runningofficial.com/">runningofficial</a>

Répondre
#3  - cet exam a dit :

<a href="https://www.cetexam.in/">Cet Exam</a>

Répondre
#4  - cet exam a dit :

<a href="https://www.cetexam.in/">Cet Exam</a>

Répondre

Écrire un commentaire

Quelle est le deuxième caractère du mot 6l7mtj ?

Fil RSS des commentaires de cet article