Utiliser des shortcodes

Les shortcodes sont des bouts de code qui permettent d’insérer des éléments de design prédéfinis sur une page, sans avoir à jouer dans le code html.

Utilisation

Les short codes ne peuvent être utilisés que dans les champs d’édition WordPress. Si vous voyez un menu de mise en page dans le haut d’une boîte d’édition, alors vous pourrez y insérer des shortcodes.

Vous devez insérer les shortcodes sous l’onglet Visuel et non Code.

Shortcodes disponibles

More Info

Insert a link into the document that will appear as a button in the style of the NFB style guide.
More Info

Parameters

  • link
    • the URL that you want to link to
  • label
    • the text of the button
  • icon
    • (optional)
    • the icon to the left of the button text
    • see the NFB style guide for the list of possible icon names

Example

        NFB.ca
    
NFB.ca

Download

This is a convenience shortcode, anticipating that « Download » buttons will probably be the most frequently used type of button, so it would be helpful for them to have their own shortcode. There is no difference between Download and Download .

Parameters

  • link
    • the URL that you want to link to
  • label
    • (optional)
    • the text of the button
    • if left blank, it will default to « Download »

Example

        Download
    
Download

[FAQ]

My content

My content 2

L’ONF s’engage à respecter votre vie privée

Nous utilisons des témoins de navigation afin d’assurer le bon fonctionnement du site, ainsi qu’à des fins publicitaires.

Si vous ne souhaitez pas que vos informations soient utilisées de cette manière, vous pouvez modifier les paramètres de votre navigateur avant de poursuivre votre visite.

En savoir plus