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

{% hint style="danger" %}
**Obsolete**

Note, that these shortcode parameters are not support anymore in Lewe ChordPress 3.0.0 and higher.
{% endhint %}

The `[chordpress-chord]` shortcode accesses a Guitar Chord post and displays it as a diagram.

## Format

{% code overflow="wrap" %}

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

{% endcode %}

## Parameters

| Parameter    | Description                                                                                         | Default                            |
| ------------ | --------------------------------------------------------------------------------------------------- | ---------------------------------- |
| chord        | The ID of the Guitar Chord post                                                                     | none                               |
| bgcolor      | Background color of the diagram                                                                     | none                               |
| canvasheight | Height of the diagram in pixels                                                                     | 180                                |
| canvaswidth  | Width of the diagram in pixels                                                                      | 220                                |
| circleradius | Radius of the finger position circles in pixels                                                     | 5                                  |
| defaultcolor | Default color of the diagram objects in hex incl. a leading hash                                    | #666666                            |
| divstyle     | The diagram is placed inside a \<div> tag. Enter the CSS styles for it here.                        | text-align:center;                 |
| fontfamily   | CSS font family of the diagram text parts. The fonts you chose here must be available on your site. | none                               |
| fontsize     | CSS font size of the diagram text parts                                                             | none                               |
| fontstyle    | CSS font style of the diagram text parts                                                            | none                               |
| fontweight   | CSS font weight of the diagram text parts                                                           | none                               |
| fretcolor    | Fret line color in hex including a leading hash                                                     | none                               |
| fretwidth    | Fret line weight in pixels                                                                          | 1                                  |
| labelcolor   | Label text color (inside the finger position circles) in hex including a leading hash               | none                               |
| labelweight  | CSS label text weight (inside the finger position circles)                                          | none                               |
| namestyle    | CSS styles of the chord name                                                                        | font-size:1.2em;text-align:center; |
| numstrings   | Number of strings (4=Bass, 6=Guitar)                                                                | 6                                  |
| stringcolor  | String line color in hex including a leading hash                                                   | none                               |
| stringwidth  | String line weight in pixels                                                                        | 1                                  |
| strokecolor  | Stroke color in hex including a leading hash                                                        | none                               |
| textcolor    | Text color in hex including a leading hash                                                          | none                               |
| titlestyle   | CSS styles of the chord title                                                                       | font-size:1.2em;text-align:center; |

## Examples

{% code overflow="wrap" %}

```
[chordpress-chord chord="112"]
```

{% endcode %}

{% code overflow="wrap" %}

```
[chordpress-chord chord="100" strokeColor="#000099" canvaswidth="100" canvasheight="100" titlestyle="font-size:1em;text-align:center;"]
```

{% endcode %}


---

# 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://lewe.gitbook.io/lewe-chordpress/shortcodes/chordpress-chord/chordpress-chord-2.x.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.
