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.
Table of Contents
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