Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display formatted Note block.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • type: type of the Note: ‘info’, ‘warning’, ‘error’, ‘ok’. The default is ‘info’
  • title: title for the Note.
  • hide_icon: option to hide Note icon: ‘yes’ or ‘no’. The default is ‘no’.

Example #1

Shortcode:

[gdkob_note title="The Info Note" type="info" hide_icon="no"]Nulla pretium dolor ac porttitor euismod. Praesent sit amet pharetra libero. Suspendisse feugiat neque a dui accumsan lacinia. Donec eget porttitor nisl, at venenatis lorem. Phasellus sed felis diam. Mauris scelerisque luctus consectetur. In a erat eget sapien efficitur aliquet sed non felis.[/gdkob_note]

Output:

The Info Note
Nulla pretium dolor ac porttitor euismod. Praesent sit amet pharetra libero. Suspendisse feugiat neque a dui accumsan lacinia. Donec eget porttitor nisl, at venenatis lorem. Phasellus sed felis diam. Mauris scelerisque luctus consectetur. In a erat eget sapien efficitur aliquet sed non felis.

Example #2

Shortcode:

[gdkob_note title="The Warning is Here" type="warning" hide_icon="no"]Nulla pretium dolor ac porttitor euismod. Praesent sit amet pharetra libero. Suspendisse feugiat neque a dui accumsan lacinia. Donec eget porttitor nisl, at venenatis lorem. Phasellus sed felis diam. Mauris scelerisque luctus consectetur. In a erat eget sapien efficitur aliquet sed non felis.[/gdkob_note]

Output:

The Warning is Here
Nulla pretium dolor ac porttitor euismod. Praesent sit amet pharetra libero. Suspendisse feugiat neque a dui accumsan lacinia. Donec eget porttitor nisl, at venenatis lorem. Phasellus sed felis diam. Mauris scelerisque luctus consectetur. In a erat eget sapien efficitur aliquet sed non felis.
0
0
619
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply