iThoughts HTML Snippets allow you to embed HTML snippets into your pages
GitHub repository: https://github.com/iThoughts-Informatique/iThoughts-HTML-Snippets
WordPress plugin page: https://wordpress.org/plugins/ithoughts-html-snippets/
Create and use HTML snippets
In your administration menu, new pages have been added to manage your HTML snippets. Create your HTML snippet by typing directly your HTML code. The visual editor has been deactivated, to avoid problems with it, and to ensure that no modification will be done to your content. You are totally free!
Once your HTML snippet created, add the shortcode to your post with the button of your visual editor, and select your snippet. The next step of the editor will search for keywords available, and open up a form to help you giving them a value. Validate, and the shortcode will be added to your page. Hurray, that’s all.
Keywords, or placeholders, are pieces of text into your HTML snippet that you can edit through the shortcode. A keyword is surrounded by two symbols %, and should not contain spaces or accentuated characters. Only letters (upper and lower case), numbers, and the symbols -_ should be used, for more stability. Once your keywords inserted into your HTML snippet, you can replace them with the text you want by adding in your shortcode and attribute of the type keyword="value"
Some keywords are reserved, and should not be used for custom content.
|%if-*%||Will be used for conditional snippets|
|user_login||Is replaced with the current user login|
|user_email||Is replaced with the current user email|
|user_firstname||Is replaced with current user first name|
|user_lastname||Is replaced with current user last name|
|user_pseudo||Is replaced with current user display name|
Don’t hesitate to use the contact form to ask me to add reserved keywords.
- Conditional snippets, that will display a snippet under a certain condition, else another.
- Add more keywords