Help: First Theme (Bringing Back The Blocks)



  • Hi, thanks for looking.

    I currently use a modified version on Lavender but the only reason I do that is because I didn't want this:
    upload-d224cb43-fa5e-4c3d-83c0-85feec3b4342
    upload-cc44fe94-39ab-4c46-8680-03ca7571091d

    and much prefer the category and subcategory blocks from Lavender:
    upload-bb700501-5555-4529-905b-004b52b4b7df

    Realistically, it might make more sense for me to have a theme that inherits from Persona and just does different rendering of the categories.

    Are categories/subcategories from the same template partial?
    Where am I looking for this file?
    Is there anything special in Lavender for the masonry on those blocks that persona won't have?

    Thanks ❤



  • @drew This is exactly what I've been wanting, I've been using the material theme. Actually the dev is mia this week, usually pretty good, there are a few bugs with 0.8., that I can't get around and so I'm looking into other theme's again today trying to figure out what direction to go again.

    But you hit the nail on the head that's exactly where i've been trying to get to, please let me know if you find or come up with anything.


  • Admin

    @drew Yeah, some quick differences I noticed when looking through the files:

    • Lavender defines the blocks themselves in templates/categories.tpl, whereas Persona uses a partial in partials/categories/item.tpl -- most likely just organisational in nature, but you'll have to actually update the partial, not categories.tpl, assuming your fork is using Persona as the base theme.
    • We use the Masonry library to arrange the blocks properly 😄


  • @julian Thanks for looking. I'll be giving it a go tomorrow I think. Obv will make it a public theme.



  • Cool @drew look forward to it, let me know if I can be of any help.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.