Image
  • Widgets
      Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Icons Extended
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
  • Features

      Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Templates

      Ready Template

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Facebook Community
    • Documentation
    • Changlogs
  • Widgets
      Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Icons Extended
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
  • Features

      Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Templates

      Ready Template

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Facebook Community
    • Documentation
    • Changlogs
Purchase Now

Getting Started

  • Can’t see the Master Addon Element inside Elementor Page editor?
  • Update Issues For WordPress Core, Theme, & Plugins
  • How To Apply For an Affiliate Account?
  • Upgrade Master Addons Free To Pro
  • How to activate 14 days Free Trial?
  • Active Pro version
  • Installing Plugin

Addons

  • Progress Bars
  • Image Carousel
  • Featured Product Element
  • Elementor Comparison table For Products & Services
  • Source Code Element
  • Advanced Image Element
  • How to Add Gradient Headline in Elementor?
  • Gallery Slider
  • Toggle Content
  • Infobox Element
  • Timeline Element
  • Dynamic Table Element
  • Instagram Feed
  • Mailchimp Element
  • BlockQuote Element
  • Changelog Element
  • Countdown timer
  • Current Time
  • Search Element
  • Filterable Image Gallery
  • Team Members Carousel
  • Counter Up For Elementor
  • Restrict Content For Elementor
  • MA Table of Contents
  • Image Hotspot
  • Image Comparison Element
  • News Ticker Element
  • Image Hover Effects Element
  • Advanced Tabs Element
  • Pricing Table Elementor Free Widget or Element Customization
  • Navigation Menu + Mega Menu
  • Navigation Menu Element
  • How MA Domain Checker Works
  • How to configure FlipBox Element
  • Adding Tooltip in Elementor Editor
  • How to add Creative Links?
  • How to Add Business Hours Elementor Page Builder?
  • How To Edit Contact Form 7
  • How to add Creative Buttons
  • Animated Headline Elementor Page Builder
  • Elementor Accordion Widget
  • Elementor Call To Action Widget Tutorial
  • How To Create and Customize Progressbar In Elementor
  • Blog Element Customization
  • Adding Team Members in Elementor Page Builder
  • Customize Dual Heading In Elementor Page Builder

Extensions

  • Elementor Glassmorphism Effects Extension
  • Tooltip Extension for Elementor by Master Addons
  • Wrapper Link
  • Floating Effects
  • Dynamic Tags
  • Elementor Display Conditions For Browser, User, Time, Many More
  • Entrance Animation
  • Header, Footer, & Comment Builder
  • Custom Elementor Breakpoints Setup & Configuration
  • Animated Gradient Background Extension
  • Reveal Extension
  • Particles Extension
  • Background Slider Extension
  • Transforms Extension
  • Rellax Extension
  • Positioning Extension
  • How to set Rellax Extension in any Element?
  • Custom CSS Extension

Widget Builder

  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • URL
  • Date Time
  • Typography
  • Font
  • Color
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Text Area
  • Number
  • Text

Theme Builder

  • Comment Form
  • 404
  • Search
  • Archive
  • Single
  • Footer
  • Header

Popup Builder

  • After Inactivty
  • Exit Intent Trigger
  • On Page Load Trigger
  • Popup Settings & Options

Template Kit

  • Access and Import Pre-built Template Kits
  • Import Elementor Template Kits
View Categories
  • Home
  • Docs
  • Addons
  • Source Code Element

Source Code Element

Image
Roy
Updated on November 18, 2025

2 min read

How to Use the Source Code Element Addon by Master Addons #

The Master Addons Source Code Widget is the easiest way to display programming codes like HTML, CSS, PHP, Java, or JavaScript directly within your post or page. It enables you to showcase code snippets with professional syntax highlighting and includes helpful features like a Copy to Clipboard button, making it easier than ever to present your work.

Using the Source Code Element Addon, you can:

  • Select your code language from 50+ different programming code structures.
  • Choose from 8 pre-built themes for syntax highlighting.
  • Easily enable or disable features like the Copy to Clipboard button and Line Numbering.
  • Customize the text, position, and visibility of the Copy button.
  • Fully control the styling, borders, and dimensions of the code container.

So, let’s see how to do that.

Adding the Source Code Element in Elementor #

Follow these steps to add and customize the Source Code Element Addon on any page of your website.

Step 1: Create or Edit a Page #

From your WordPress dashboard, go to Pages → Add New to create a new page. You can also select an existing page and click Edit.

Next, click the “Edit with Elementor” button. This will open the Elementor editor, a visual page builder where you can drag and drop elements easily.

Step 2: Find the Source Code Element Addon #

If you have installed Master Addons properly, you will get an element called “Source Code.”

Drag this element inside your editor. You will see the default Source Code preview appear on your page, and you can now start your customization journey.

Step 3: Customize the Source Code Settings #

After placing the addon, you’ll find the customization sections in the left-hand panel, primarily under the Content and Style tabs.

Content Tab #

This is where you add your code and configure its functionality.

Source Code: #

  • Code: Choose the programming language for syntax highlighting. The list is extensive, including HTML, CSS, PHP, JavaScript, Python, C++, React JSX, YAML, and many more.
  • Theme: Select the visual style for your code block: Default, Dark, Funky, Okaidia, Twilight, Coy, Solarized light, Tomorrow, or Custom.
  • Source Code: Enter or paste your code snippet here. You can also use the Edit with AI feature.
  • Enable Copy Button: Toggle this to add a “Copy” button to the code block.
  • Enable Line Number: Toggle to show or hide line numbers.
  • Button Visibility: If the copy button is enabled, choose when it appears: Always or On Hover.
  • Button Position: Set the button’s location: Top Right Corner or Bottom Right Corner.
  • Copy Button Text: Set the text for the copy button (e.g., “Copy”).
  • After Copied Button Text: Set the text that appears after clicking (e.g., “Copied!”).

  #

Style Tab #

This is where you control the appearance of the code block and copy button.

Container: #

  • Height: Adjust the maximum height of the code container.
  • Padding: Control the inner spacing of the code container.
  • Margin: Control the outer spacing of the code container.
  • Border Type: Choose a border style: Default, None, Solid, Double, Dotted, Dashed, or Groove.
  • Border Radius: Set the rounded corners for the container.

Button: #

  • Typography: Control the font settings for the button text.
  • Text Color: Set the color of the button text.
  • Background Color: Set the background color of the button.
  • Padding: Adjust the inner spacing of the button.
  • Border Type: Choose a border style for the button: Default, None, Solid, Double, Dotted, Dashed, or Groove.
  • Border Radius: Set the rounded corners for the button.

Step 4: Save and Publish Your Page #

Once you’ve customized everything to your liking:

  1. Click the “Publish” button (if it’s a new page) or “Update” (if editing an existing page).
  2. Visit your page on the frontend to preview the Source Code block live.

#

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on November 18, 2025
Advanced Image ElementElementor Comparison table For Products & Services
Table of Contents
  • How to Use the Source Code Element Addon by Master Addons
    • Adding the Source Code Element in Elementor
      • Step 1: Create or Edit a Page
      • Step 2: Find the Source Code Element Addon
      • Step 3: Customize the Source Code Settings
        • Content Tab
        • Source Code:
    •  
      • Style Tab
      • Container:
      • Button:
      • Step 4: Save and Publish Your Page

Join 40,000+ Web Creators Who Trust Master Addons

Get all the premium widgets and templates you desire, built with clean code that keeps your site fast. Ditch the bloat, not the features.

Try Live Demo
Join The Community
Master Addons for Elementor
Master Addons Logo

110+ Premium Widgets & Lifetime Updates – Build Beyond Limits. An Exclusive Creation by Pixar Labs

Facebook-f Twitter Youtube Wordpress
Features
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
Support
  • Support Form
  • Contact US
  • Join Community
  • Support Form
  • Contact US
  • Join Community
Resources
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
Navigate
  • Terms of Use
  • Refund Policy
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Privacy Policy
Advertisement