> For the complete documentation index, see [llms.txt](https://lewe.gitbook.io/lewe-chordpress/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lewe.gitbook.io/lewe-chordpress/shortcodes/chordpress-jtab-2.x.md).

# \[chordpress-jtab] (2.x)

{% hint style="danger" %}

#### Obsolete

Note, that this shortcode is not supported anymore in Lewe ChordPress version 3.0.0 and higher.
{% endhint %}

The `[chordpress-jtab]` shortcode utilizes the open source jTab library to display chord diagrams and notation. You can find more details about it here: <https://jtab.tardate.com/>

## Format

```
[chordpress-jtab parameter="value" ...]
```

## Parameters

| Parameter  | Description                                                                                                                                          | Default   |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| buttontext | When using form=”true”, this is the text shown in the button for an online conversion of a jTab phrase                                               | Show jTab |
| color      | Color of the diagram. Use CSS code, e.g. #990000.                                                                                                    | none      |
| form       | Set to “true” to show an input box with a button to convert a jTab phrase right one your page.                                                       | false     |
| id         | If you want to address the element with your own code, you can use this if to identify the DOM object. (This does not work when you use form=”true”) | none      |
| phrase     | Tha jTab phrase you want to have converted (find details [here](https://jtab.tardate.com/)).                                                         | 5         |

## Examples

{% code overflow="wrap" %}

```
[chordpress-jtab phrase="G / C / D"]
```

{% endcode %}

{% code overflow="wrap" %}

```
[chordpress-jtab form="true" buittontext="Convert" phrase="C Em Am"]
```

{% endcode %}
