Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created July 11, 2016 18:17
Show Gist options
  • Save bangpound/221491a62da37e456e51ca103706b602 to your computer and use it in GitHub Desktop.
Save bangpound/221491a62da37e456e51ca103706b602 to your computer and use it in GitHub Desktop.
commit dd203033dc9fb42fae28eba00066539c87ab3c95
Author: Benjamin Doherty <[email protected]>
Date: Mon Jul 11 13:16:38 2016 -0500
add class to adjustable titles page header.
diff --git a/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig b/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
index 26850eb..1ccc0d4 100644
--- a/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
+++ b/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
@@ -1,3 +1,5 @@
{% extends 'page-title.html.twig' %}
+{% set attributes = attributes.addClass('page-header--adjustable') %}
+
{% block title %}{{ title }}{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment