Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Adding banner images is accomplished through SCSS changes that require Developer access to your college website on the Pantheon platform. The process involves creating a Multidev branch of your college website, cloning the Multidev locally using GIT, making the SCSS changes and compiling them with a SASS compiler, testing your changes locally, and pushing them into your Multidev branch for further online testing. Once you have tested your changes on the Multidev, you can submit a merge request via Slack to have your changes merged to the development environment.

Instructions

Follow the repo’s README.md instructions to begin the code editing workflow. To test your changes locally follow the instructions in the Local Development Stack article.

Place your image file (1600x225 px) in [site-dir]/branding/sections in your college site folder (e.g. rsc/branding/sections/admissions-records.png)

Open a browser and navigate to the a page with the image to replace. Hover over the image and right click and select “Inspect” to view HTML source for the image. Find the div id="branding-img" element wrapper. Note the class names for this div element.

<div id="branding-img" class="admissions-records students">

In your code editor, open [site-dir]/themes/[site-dir]/partials/_branding.scss in your site's theme folder. Add a line for your section's image using the class name noted earlier.

  /* Section */
  #branding-img.admissions-records { background-image:url(#{$site_branding_path}/sections/admissions-records.png); }

Save and recompile your college's SCSS folder. if using the Lando dev stack you can use lando gulp.

Refresh your web browser. May need to clear Drupal cache lando drush cc all.

Follow the README.md instructions to push your changes as a pull request.

  • No labels