Introduction
Use the code shortcode anytime you want to include code or preformatted text. The code can be shown in a block or inline. You can control the font color, background, and border radius (rounded corners).
Example
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo ‘<p>Hello World</p>’; ?>
</body>
</html>
You can also customize the colors and border radius.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo ‘<p>Hello World</p>’; ?>
</body>
</html>
Inline
The following uses the code shortcode to shows the code inline within the text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit inline code
integer laoreet mauris a augue bibendum with color
blandit.
Explore More Shortcodes
- Alert
- Animated Popular
- Animated Image
- Animated Scroll New
- Audio
- Badge
- Blockquote
- Blog
- Blur New
- Books
- Button
- Chart
- Clients
- Code
- Collapsibles
- Content Box
- Content Section Popular
- Counter
- Coupons
- Custom Post Type
- Definitions
- Device Mockups
- Divider Popular
- Dropcap
- Emphasis
- Events
- FAQ
- Filler
- Flip Box Popular
- Fullscreen Video
- Gallery Popular
- Google Docs Viewer
- Guests
- Heading
- Highlight
- Hover Box
- Horizontal Ruler
- Icon Popular
- Icon List
- If New
- Image
- Image Compare
- Jobs
- Label
- Lead
- Lightbox
- Locations
- Map
- Masonry
- Members
- Menu
- Post Meta Data
- Movies
- Music
- News
- Overlay Popular
- Panel New
- Parallax Scene Popular
- Permalink
- Person
- Popover
- Portfolio
- Post Fields
- Post Media
- Pricing Table
- Progress
- Project
- Promotional Box
- QR Code
- Quotes
- Recent Books
- Recent Clients
- Recent Coupons
- Recent Events
- Recent Jobs
- Recent Locations
- Recent Movies
- Recent Music
- Recent News
- Recent Portfolios
- Recent Posts
- Recent Projects
- Recent Quotes
- Recent Recipes
[intense_content_section]
<h2>Introduction</h2>
Use the code shortcode anytime you want to include code or preformatted text. The code can be shown in a block or inline. You can control the font color, background, and border radius (rounded corners).
[/intense_content_section]
[intense_content_section background_type="color" background_color="#f9f9f9" border_top="1px solid #ededed" border_bottom="1px solid #ededed"]
<h2>Example</h2>
[intense_code]
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
[/intense_code]
You can also customize the colors and border radius.
[intense_code color="primary" font_color="#ffffff" border_radius="5px"]
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
[/intense_code]
[/intense_content_section]
[intense_content_section border_bottom="1px solid #ededed"]
<h2>Inline</h2>
The following uses the code shortcode to shows the code inline within the text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit [intense_code inline="1"]inline code[/intense_code] integer laoreet mauris a augue bibendum [intense_code inline="1" color="#333" font_color="#ffffff"]with color[/intense_code] blandit.
[/intense_content_section]
[intense_snippet snippet_id="Child Theme | Shortcodes/footer" snippet_title="Shortcode Page Footer"]