Categories
Code Wordpress

WordPress prismjs with Child Theme

Step 1: Go to http://prismjs.com/download.html Step 2: Select your theme and languages Step 3: Download JS and CSS files (bottom of the page) Step 4: Upload files into child theme folder Step 5: Update funtions.php with the below code Step 6: Apply css <pre> and <code> class (see below examples) <pre class=”line-numbers”><code class=”language-css”>pre { border: 1px […]