Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Prototyping custom themes for 2.5.x using XAMPP? [RESOLVED]

edited May 12 in Vanilla 2.5 Help

I'm assuming this is supposed to be possible?

I have a working install of 2.5.1 on my local machine thanks to XAMPP. However trying to copy the contents of the included bittersweet theme with the exception of 'addon.json', which I've written from scratch as following:

{
    "name": "Godot Developers",
    "key": "Godot", // Exactly the same as the resulting folder for the otherwise copied theme
    "hidden": false,
    "description": "The custom theme for Godot Developers community",
    "version": "1.0.0",
    "type": "theme",
    "priority": 1000,
    "authors": [
        {
            "name": "Felix Kütt",
            "email": "[email protected]"
        }
    ]
}

Results in no visible new theme in the list. I have also tried to clear all relevant files in 'forum-root/cache/' and 'forum-root/cache/theme' but no cigar. What am I doing wrong?

Comments

  • edited May 12

    Yeah, that is just a comment added while posting here.

    Also amongst the files I have cleared out of cache folders has been addon.php every time. So doubtful that is it.

  • edited May 12

    Eh, never mind. Figured it out. The documentation states:

    The name parameter is optional; it will default to the slug if omitted. To include special characters here or in the description, use their HTML entity code.

    As a result I did initially try writing my last name in the authors as: Kütt but that seems to be just as broken as writing it as Kütt. Writing my last name formatted in Scandinavian form kytt fixed the issue.

    I knew it had to be something simple.

    R_J
  • edited May 13

    I know this is solved and all but I hope nobody minds my curiosity getting ahead of me and asking another question in here.

    Is the theme's custom.css overriding the values pulled from the dashboard's style.css(cause that is the only style.css I could find)?

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Hi

    Yes, afaIk.

  • Thanks. At least I know what it is I'm overriding. O.o

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    These are the steps for styles.css ad custom.css that Vanilla takes:

    Look for "applications\dashboard\design\style.css"
    Look for "themes\current theme\design\style.css" and if that is found, use this and forget the above
    Look for "themes\current theme\design\custom.css"

    So you would be able to override all styles, but that is not recommended.

    megalomaniak
  • edited May 15

    My current progress:

    image

    Had to make the ´.PhotoWrap´ ´display:none;´ on the ´.Top´ because it was breaking the top bar, been a long time since I've done this stuff and couldn't be bothered to deal with it now.

    For reference I'm trying to make the forum consistent with:
    //godotengine.org/

  • LincLinc Director of Development Detroit Vanilla Staff

    I filed an issue regarding UTF8 in the addon.json file. https://github.com/vanilla/vanilla/issues/7227

    megalomaniakR_J
Sign In or Register to comment.