# Theme Shortcodes

{% hint style="danger" %}
**Please note:** This page is under construction and has not been finished yet.
{% endhint %}

## Introduction

......

## Common theme shortcodes

{% hint style="info" %}
Please refer the the [Theme shortcodes](https://devguide.e107.org/templates-shortcodes-and-constants/core-shortcodes#theme-shortcodes) section&#x20;
{% endhint %}

## theme\_shortcodes.php

{% hint style="success" %}
:thumbsup: **TIP:** As of e107 v2.x, you no longer need separate `xxxxxx.sc` files inside your theme's folder. You can now include all your theme-specific shortcodes in a single file called [**theme\_shortcodes.php**](#theme_shortcodes-php).&#x20;
{% endhint %}

These shortcodes may be used in your **theme.html** and **layout/xxx \_layout.html** files which reside inside your theme's folder. eg. Using the example below: `{MY_SHORTCODE}` and `{MY_OTHER_SHORTCODE}` will be substituted with "Something" and "Something else".

```php
class theme_shortcodes extends e_shortcode
{
	
    function sc_my_shortcode()
    {
        return "Something";
    }

    function sc_my_other_shortcode()
    {
        return "Something else";
    }

}
```


---

# 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://devguide.e107.org/theme-development/theme-shortcodes.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.
