Getting Started
We designed Alfred to help web developers build the best portfolios and beautiful galleries. The plugin offers wide range of features and options. First, let's implement the plugin into your project.
Installation
Short guide, how to use Alfred. To get informations what files are where, please check the Overview - What's included.
Start from scratch or use a template, all templates - examples are placed at the examples folder (Don't forget to include theassets/ folder).
Start from scratch
Create a new HTML file and follow instructions below.
Include main files
The main stylesheet
alfred.cssand thenormalize.cssplace into<head>.
The JavaScript corealfred.jsplace before end of</body>tag.Create HTML structure
Insert the code below inside the
Tabs<body>.
LayoutAJAX files
Now copy a folder called
ajaxplaced inalfred/examples/main/folder to a destination, where you've placed the other files mention above. Check if files paths are correct ("templatePath" - gallery and modal window template, "pathPrefix" - layout and gallery images). If so, you're ready to go.The
file://protocolPlease note, that all AJAX calls won't work (such as the Gallery, the Modal window and the Load more feature), due the
file://protocol (like when you open a local HTML file in browser).