How to Add Custom Code Snippets?

The Custom Code Snippets is a premium extension provided by the Rishi Pro plugin. It allows you to inject custom code snippets to the header, body and footer file of your entire website or an individual post/page. This feature removes the hassle of manually editing the theme files or adding any third party plugins to add custom codes.

Activating the Custom Code Snippets Extension #

You can access the Custom Code Snippets Extension via WordPress Dashboard > Appearance > Rishi Theme > Extensions > Pro Extensions. Then Activate toggle to get the Custom Code Snippets extension to work.

Configuring Custom Code Snippets Settings #

After activating the Custom Code Snippets extension you will have way to manage your snippets:

Globally #

You can use this setting if you want to add the custom code to the header, footer or body element of your entire website content.

For this,

  • Navigate to Appearance > Customize > Custom Code Snippets.
  • Enter your header, after body open scripts or footer scripts in the respective field.
  • Click Publish.