This component is used for FIs to include statements from their employees, members, whoever they’d like to vouch for their customer service/exemplary performance as a financial institution. It has spaces for an optional headshot and a text space for a quote.
This component includes a SECTION on the existing homepage template, and a SECTION on the sidebar of subpages.
Homepage
JSON Files
package.json- For the homepage section, all the necessary pieces in the mustache are controlled by thepackage.jsonfile. Make sure that yourcomponentTestimonialvariable in thepackage.jsonfile is set totrueif things aren’t working!-make.json- Since this is a component that adds content areas to the homepage, make sure to rungulp make-everything, grab the list of content areas from thetemplates.jsonthat is generated, and paste them into the home template in your-make.jsonfile.
Mustache Files
src > templates > _partials > _testimonial.mustache- The PARTIAL which is included on the homepage.src > templates > home.mustache- The homepage, which includes a div with an ID of testimonialSlider that wraps the slider for your theme. If you are using the most recent showcase files, this should be automatically un-commented based on thetruevalue that you set in your package.json. If you’re working with older files, here is information on the placement of the testimonial slider for each theme:- Alabaster: Testimonials are between the 2-column slider (or the featured rates, if they’re using that component as well) and the 3-column card ads. testimonialSkip div wraps around the 3-column card ads.
- Rosewood: Testimonials are between the 2-column sub-ads and the e-mail signup. testimonialSkip div wraps around the email collection form, so may need to be moved if client is not using the email collection form.
- Midnight: Testimonials are between the sub-ads with the accordions, and the slider of ads with the large circle image. The testimonialSkip div is around the latter.
Script
src > scripts > banno-functions.js- If left empty, the testimonial can cause extra blank space on the homepage. This script determines if there’s any content in the testimonial, and if not, removes that extra space.src > scripts > script.js- Inside the window on load function, in the ELSE. Adds/removes a class from the testimonial component depending on if an image has been placed for the background area.src > scripts > sliders.js- There are TWO instances for this slider, one inside the IF and one inside the ELSE. Make sure to uncomment both of them, because one works when the slider is in the CMS (and makes it easier to edit) and one works on the published page.
Styling
src > scss > themes > _general.scss- Generalized styling for both the slider component on the homepage, AND the cell component that goes within the sidebar on subpages.src > scss > themes > [yourtheme].scss- Includes specific styling based on the theme for the testimonial component AND the cell that goes within the sidebar on subpages.src > scss > cms.scss- Styling to make sure that the testimonial slider is as easy to edit as possible in the CMS.
Subpage
Mustache Files
src > templates > _partials > subpages > sidebar.mustacheand possiblysrc > templates > _partials > subpages > sidebar-members.mustache- The sidebar area for the subpages. You will need to un-comment the mustache partial call for the testimonial cell so that it’s included when you run make-everything.src > templates > _partials > subpages > testimonial-cell.mustache- The actual content area for the testimonial cell.
Styling
src > scss > sections > home.scss- Generalized styling for both the slider component on the homepage, AND the cell component that goes within the sidebar on subpages.src > scss > themes > [yourtheme].scss- Includes specific styling based on the theme for the testimonial component AND the cell that goes within the sidebar on subpages.
Example Sites
Alabaster
- HOMEPAGE SECTION
- SUBPAGE CELL
Rosewood
- HOMEPAGE SECTION
- SUBPAGE CELL
Midnight