CSS-Tricks
The CSS-Tricks is a well-organized platform when you want to do a little exploration. The range includes a variety of snippets for setting up animations, configuring rules and even handling text lengths. And oh, you can always welcome visitors through the shaky head snippet. Responsive websites have become essential, and you can develop a perfect one by using the fluid typography snippet.
LittleSnippets
The LittleSnippets is actually a blog, but they offer a limited range of snippets. We still put them on the list because all the available code pieces are practical, and thus, highly recommended. As an example, the image hover effect snippet is ideal for use on a portfolio, news and media website. Similarly, the button hover effects can be used for developing a classier navigation bar that grabs attention through minute alterations and movements.
But wait, the process of adding snippets can be problematic at timesGreat, so you browsed all the websites that we suggested above, and now want to add your favorite snippets to your WP site. Read the instructions to find out the exact way in which to do this, but generally, it involves adding the code to the functions.php file or a special plug-in. As simple as this may sound, it isn’t because even a single, small flaw can break the code, and make your WP site inaccessible. Adding snippets to a plug-in is an option, but file management can then be tricky.
Adding snippets to the functions.php fileThis process comprises of the following two steps.
Code Snippets
Code Snippets is probably our favorite plug-in for adding snippets that displays the code and the highlighted syntax through a convenient and extensible engine, referred to as the GeSHi engine. Support for multiple languages is provided.
Access the plug-in after installation. Click on Snippets and then Add new. Paste the code, select the scope and then save the changes.
Code Markup
The Code Markup plug-in displays HTML characters and tags, exactly as the typed code, though some of the tags might be depicted as general HTML. For greater post formatting control, disable the visual editor.
Snipplr
Snipplr is a more of a code sharing website rather than a plug-in. Register for an account through a quick process to get an API key.Copy, and then paste on the settings page, right at the end. There, your chosen snippet should work pretty well now.
CodeColorer
This plug-in lets you add snippets into the post, and then highlight them elegantly. Also based on the GeShi library, support for multiplelanguages, comments, RSS and color themes is available.
The CSS-Tricks is a well-organized platform when you want to do a little exploration. The range includes a variety of snippets for setting up animations, configuring rules and even handling text lengths. And oh, you can always welcome visitors through the shaky head snippet. Responsive websites have become essential, and you can develop a perfect one by using the fluid typography snippet.
LittleSnippets
The LittleSnippets is actually a blog, but they offer a limited range of snippets. We still put them on the list because all the available code pieces are practical, and thus, highly recommended. As an example, the image hover effect snippet is ideal for use on a portfolio, news and media website. Similarly, the button hover effects can be used for developing a classier navigation bar that grabs attention through minute alterations and movements.
But wait, the process of adding snippets can be problematic at timesGreat, so you browsed all the websites that we suggested above, and now want to add your favorite snippets to your WP site. Read the instructions to find out the exact way in which to do this, but generally, it involves adding the code to the functions.php file or a special plug-in. As simple as this may sound, it isn’t because even a single, small flaw can break the code, and make your WP site inaccessible. Adding snippets to a plug-in is an option, but file management can then be tricky.
Adding snippets to the functions.php fileThis process comprises of the following two steps.
- Set up a child theme so as to ascertain that the added code snippets aren’toverwritten when you next update the theme.
- Paste the snippet in thefunctions.php file.
Code Snippets
Code Snippets is probably our favorite plug-in for adding snippets that displays the code and the highlighted syntax through a convenient and extensible engine, referred to as the GeSHi engine. Support for multiple languages is provided.
Access the plug-in after installation. Click on Snippets and then Add new. Paste the code, select the scope and then save the changes.
Code Markup
The Code Markup plug-in displays HTML characters and tags, exactly as the typed code, though some of the tags might be depicted as general HTML. For greater post formatting control, disable the visual editor.
Snipplr
Snipplr is a more of a code sharing website rather than a plug-in. Register for an account through a quick process to get an API key.Copy, and then paste on the settings page, right at the end. There, your chosen snippet should work pretty well now.
CodeColorer
This plug-in lets you add snippets into the post, and then highlight them elegantly. Also based on the GeShi library, support for multiplelanguages, comments, RSS and color themes is available.