Example: My first theme

    Let's create a new and simple theme, I will call my new theme Coffee.

    You are going to have the next folder and files structure.


    Next steps are to create the content of the files. Let's start with the index.php and add the following HTML and PHP code.

    <!DOCTYPE html>
        <meta charset="UTF-8">
        <?php foreach ($content as $page): ?>
            <h1><?php echo $page->title(); ?></h1>
            <div><?php echo $page->content(); ?></div>
        <?php endforeach; ?>

    Edit the file languages/en.json to add the name and description about the theme.

            "name": "Coffee",
            "description": "This is my first theme for Bludit."

    Now edit the file metadata.json to complete the information about the theme.

        "author": "Bludit",
        "email": "",
        "website": "",
        "version": "1.0",
        "releaseDate": "2018-08-01",
        "license": "MIT",
        "compatible": "3.0",
        "notes": ""

    Congrats, you have your first theme for Bludit!. Now you can go to the Settings and activate your theme.

    Collaborate with us and edit this page