A basic starting point for an Aptuitiv theme.
The goal of this theme is to be copied to another repository for the site you're working on. From there, you can install it on the website, and edit it as needed.
You'll want to create a new git repository for the site that this is being installed to. Copy the contents of this repo to that repo. That will allow you to make modifications that only affect that website.
In the command line run npm i to install the packages.
Log into the CMS and go to Settings -> Domain / FTP / DNS.
In the project command line run
npm run initThat will initialize the development environment. Follow the prompts to set up the FTP connection.
(If you have the Aptuitiv website-build-tools installed globally you can do the above things in one step with the aptuitiv-build init command.)
Before deploying, you'll want to log into the CMS for the new site and do the following. These prepare the CMS for deploying the theme files.
-
Install the Theme configuration by uploading it under Design -> View Themes -> Update and continuing on the next page. We recommend that you first export the theme from the original theme admin and then upload that
theme.jsonfile to this site. -
Prime templates
- Prime the Page Templates by visiting Design -> Templates.
- Delete the "Default" Template from Design -> Templates.
- Prime the Snippets by visiting Design -> Snippets.
- Prime the Navigation Templates by visiting Design -> Navigation -> Navigation Templates.
- Prime the Form Templates by visiting Forms -> Templates.
-
Pages
- Edit the "Home" page to use the "One Column" Page Template from Content -> Pages.
-
Navigation. Go to Design -> Navigation -> Navigation Menus
- Create a navigation menu called
Footer. This is the navigation menu for the footer of the website.- Template:
Footer - Show sub navigation:
Never.
- Template:
- Create a navigation menu called
Header bar. This is the navigation menu for the top bar in the header.- Template:
Header bar - Show sub navigation:
Never.
- Template:
- Create a navigation menu called
Main. This is the main navigation that shows next to the logo.- Template:
Main - Show sub navigation:
Show all sub navigation all the time
- Template:
- Create a navigation menu called
Pop out menu. This is the navigation that shows in the hamburger menu on large screens.- Template:
Pop out menu - Show sub navigation:
Show all sub navigation all the time
- Template:
- Create a navigation menu called
-
Prime the Content Builder Elements by visiting Design -> Blocks -> Blocks.
-
Prime the Collection Widgets by visiting Widgets -> Collections -> Notifications.
-
Search
- Prime the Search Templates by visiting Site Manager -> Search -> Templates -> Templates.
- Edit and save the Search Form under Site Manager -> Search -> Forms. This will generate the form fields.
If you ran npm run init as described above then the site files are already built. If not, then run npm run build to build the files.
Deploy all of the theme files with npm run deploy. That will upload the files via FTP to the server.
To enable custom content above the footer that will be on every page the footer.twig template create a content snippet called "Footer content". Make sure that it's key is footer-content.
The blog has a few content snippet that it expects to use.
- Blog post header (snippet key:
blog-post-header). - Blog post footer (snippet key:
blog-post-footer).
To finish the installation, you'll need to configure some basic options of the theme.
- Update the Company Information under Settings -> Company Information.
- Configure Theme Settings under Design -> Theme Editor.
- Go to Settings -> Blocks - Full Width Image. Set the widths to
1400and800. - Go to Settings -> Header and either upload the logo or set the text logo.
- Go to Styles -> Blocks - Banners.
- Large banner images:
- Set the following image sizes:
- 2000 x 900
- 1400 x 630
- 1000 x 450
- 700 x 320
- 450 x 400
- Aspect ratio when croping:
20 x 9. - Minimum aspect ratio:
20 x 9
- Set the following image sizes:
- Large banner overlay image
- Overlay image sizes:
- 420 x 560
- Overlay image sizes:
- Banner bar images:
- Set the following image sizes:
- 2000 x 600
- 1400 x 420
- 1000 x 300
- 700 x 300
- Aspect ratio when croping:
20 x 6. - Minimum aspect ratio:
20 x 6
- Set the following image sizes:
- Large banner images:
- Go to Styles -> Blocks - Image. Set the Image Sizes
- Full-width image widths
- 2000
- 1200
- 600
- Large image widths
- 1200
- 600
- Medium image widths
- 800
- 500
- Small image widths
- 500
- Full-width image widths
- Update the Color Palette under Palettes -> Color Palette.
- Update the Font Palette under Palettes -> Font Palette.
- Go through all of the Theme Styles from the Theme Styles tab and update all color references to use the Color Palette if matching one.
- Update Typography under Styles -> Typography.
- Go to Settings -> Blocks - Full Width Image. Set the widths to
You've now got an instance of the theme installed and configured on your new site. From here you can customize the styles in the Theme Editor or make template changes.
If you want to make changes, all you have to do is run npm run watch while making all file changes. They will be deployed automatically.
We recommend using the Aptuitiv website-build-tools and the init command for generating the .env file automatically.
You can alternatively create a manual .env file with the following data instead:
FTP_ENVIRONMENT = live
FTP_SERVER = ftp1.branchcms.com
FTP_USERNAME = my_ftp_username
FTP_PASSWORD = my_ftp_passwordInformation about choosing font sizes.
We recommend the Major third (1.250) or Perfect fourth (1.333) scales with the base size starting at 18px.
- What is a type scale.
- Typescale calculator
- Fluid type scale calculator - This will give rem values.
- Type scale generator - Convert the rendered pixel values to rems by dividing by 10.