It’s important to have a good foundation
This theme is built to be modified by a developer. Below is what you should know about this theme so that you can get the most out of it. Ideally, we recommend using this as a parent theme and building all of your customization in the child theme. This will enable you to receive updates that are made to the parent theme.
We’ve used all of our favorite languages, tools, and services in order to produce our best version of a base theme. It is exciting to be able to share it with others. We hope that you enjoy it!
Plugins & Licences
Our Stack
To get the full functionality out of LaLa Theme 4.0, you will need to add a few premium plugins or licenses.
View the Plugins & Licenses ListMore Dev Notes
Partial Templating and Inheritance
- LLT4 uses template partials to build a full, rendered view.
- Partial views are all contained in the
/resources/views
folder. - The parent and child theme each have their own set of asset bundles.
- “Assets” are files that have to be enqueued, such as stylesheets and scripts.
- Partials can be overwritten in the child by mimicking the partial path.
- E.g., the
{child_dir}/.../header/banner.php
will be used instead of the{parent_dir}/.../header/banner.php
if the file exists.
- E.g., the
- The
ll4_view()
function can be used to call in partial views with the inheritance logic already baked in.
- While the styles contained in
/resources/(sass|stylus|css)
share a similar structure to views, it is only for organizational purposes.- Child theme style files will not overwrite parent files (since they use different asset bundles).
- In addition, the
/resources/img
files are the sources for any theme images but are mainly used for background images and other CSS-related needs.
- Scripts are split up by functionality with each folder representing an enclosed function.
- E.g., “Smooth Scroll” and “Google Map” functions are all contained in their own directories.
- Different scripts are explicitly called in by the
/resources/js/app.js
file.