Extensions:Alternate Site Designs

From Lorekeeper Wiki
Revision as of 22:15, 21 July 2024 by Cylunny (talk | contribs)
Jump to navigation Jump to search
Alternate Site Designs
Description Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel!
Author(s) Unknown Author
Status testing
Github extension/alternate-site-designs
LK Version 2.1.7
Contains a Migration






Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel!

Installation

  • pull & deal with merge conflicts
  • php artisan migrate
  • php artisan optimize x2
  • php artisan update-extension-tracker

Configuration

Nothing should be needed, it's all editable via admin panel.

Usage

Once you ran all the usual commands, you should have a new section under Settings called Site Design. Go there to edit the site design! As of version 1.0.0, these site designs are included:

  • default
  • headerless
  • squished
  • full width

Because this extension only changes site layout and fonts, not colors! As such it works beautifully with the theme manager extension (by Uri, moif and me). A convenience merge was added above under github if you want both! http://wiki.lorekeeper.me/index.php?title=Extensions:Theme_Manager

Fonts

I added a selection of fonts to use for ease of use, adding more would require some code knowledge but is not very difficult. The gist of it would be:

  • add a new font import in app.blade.php below ALTERNATE SITE FONTS
  • add the name of your new font to the $fonts array in the SiteDesignController's getIndex()function

And it should work and show up as a selectable font.

Troubleshooting

We are never 100% safe from those pesky bugs. If you find something, feel free to contact me- I am cylunny on discord or toyhou.se!

Images

See here for available designs + examples on how it can look with the theme manager extension! https://imgur.com/a/Hwgbqlm

See Also

If this extension helped you, feel free to support me on Kofi!