# Features

### Shortcode and Block Support

Whether using the classic or block editor, you can use AlertsDLX to output beautiful alert boxes.

{% content-ref url="/pages/G99GnVEpGgcOyZiLJ6cv" %}
[Shortcode Usage](/alertsdlx/shortcode-usage.md)
{% endcontent-ref %}

### Four Alert Blocks - and many styles to choose from

The plugin comes with blocks inspired by three UI component libraries:

* Bootstrap
* Chakra
* Material
* Shoelace

Each has their own unique style and variations, which can be configured on the block itself or in the sidebar options.

<figure><img src="/files/u7bUXLeC15OzAJbz7SEM" alt=""><figcaption><p>Chakra Alert Sidebar Options</p></figcaption></figure>

### Styles make the block customizable

Each block has several theme styles to choose from. For example, the Bootstrap alert block has a handful of available style options.

<figure><img src="/files/uA20t2yZEEoi1bpUN16j" alt=""><figcaption><p>Bootstrap Alert Block with Several Style Options</p></figcaption></figure>

Please view the example below how multiple blocks can look depending on the style chosen.

<figure><img src="/files/1gDOM3pbYMYlD5pgRE5C" alt=""><figcaption><p>Different Alert Styles</p></figcaption></figure>

### Style Variants

In addition to different styles, each block has its own variants.

<figure><img src="/files/doIKELc5SYRqXv7epzu4" alt=""><figcaption><p>Chakra Alert Block With Warning Style and Solid Variant</p></figcaption></figure>

Here's an example of a centered variant of the Warning style.

<figure><img src="/files/5q8msScA2nPUheusSU3i" alt=""><figcaption><p>Chakra UI Centered Variant (Warning style)</p></figcaption></figure>

### Icon Selector

AlertsDLX comes with a custom icon selector that allows for easy insertion of different icons.

Simply click on the icon and you'll be able to select a new one.

<figure><img src="/files/oicgnd3Du7RA646l5Jvm" alt=""><figcaption><p>The Icon Selector Makes Selecting an Icon Easy</p></figcaption></figure>

In addition to icons, you can also insert your own SVGs instead of the pre-selected icons.

<figure><img src="/files/DnWLqO2DHOeC0VOf8BCp" alt=""><figcaption><p>Insert Custom SVG Code for Custom Icons</p></figcaption></figure>

{% hint style="info" %}
**Inspired by GenerateBlocks**: The icon selector and SVG compatibility was inspired by the [GenerateBlocks](https://wordpress.org/plugins/generateblocks/) plugin.
{% endhint %}

AlertsDLX has icons from the following sources.

* [Google Fonts Material Icons](https://fonts.google.com/icons)
* [Chakra UI Icons](https://github.com/chakra-ui/chakra-ui/tree/main/packages/components/icons/src) (GitHub)
* [Bootstrap Icons](https://icons.getbootstrap.com/)

### Disable or Enable Elements

With the block options, you can enable or disable the title, description, icon, and button.

<figure><img src="/files/jPwQIt33wgqw62KYrR86" alt=""><figcaption><p>Enable or Disable Alert Options</p></figcaption></figure>

For example, a button isn't shown by default. You can enable a button using the above options.

<figure><img src="/files/xwIARVWUUKWxxfAejyQS" alt=""><figcaption><p>Chakra Alert with a Button</p></figcaption></figure>

{% hint style="info" %}
**Buttons**: the UI libraries didn't include button styles, but CTAs are important for alerts, so it was added in as a feature.
{% endhint %}

### Button link options

With the inclusions of buttons comes a mechanism to link out to your resource. Add a link and set it to launch in a new window, and modify the `rel` attributes for nofollow or sponsored links.

<figure><img src="/files/TrGQRmeFTTS15ega0GFc" alt=""><figcaption><p>Button Link Options</p></figcaption></figure>

### Set the container's maximum width

The block has different alignment options, but if you choose a centered, wide, or full-width alignment, you may find the block to be too wide when viewed on the front-end.

With a Maximum Width option, you can adjust how wide your alert block can be when viewed at wider widths.

<figure><img src="/files/mpiZwD7q686ROSHNehcW" alt=""><figcaption><p>Maximum Width Option</p></figcaption></figure>

Each width can be adjusted via pixel, percentage, or viewport width.

### Change the base font size

The styles for the alert blocks are all relative to a base font size. You can adjust this base to be smaller or bigger depending on your needs.

<figure><img src="/files/fjS0aGjPisej2lNQgVLe" alt=""><figcaption><p>Adjust a Base Font Size</p></figcaption></figure>

### Typography

The Lato Google Font is used on the front-end to allow the alerts to stand out even more.

<figure><img src="/files/x73mqu5kDVeV25zsvplc" alt=""><figcaption><p>Chakra Solid Info Alert Block</p></figcaption></figure>

<figure><img src="/files/Y6xGb1AaOCaLVyoA9Z1o" alt=""><figcaption><p>Bootstrap Warning Alert Block</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dlxplugins.com/alertsdlx/features.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
