Skip to content

Instantly share code, notes, and snippets.

marisqaporter / font.html
Last active May 23, 2018
Using font awesome on drupal
View font.html
/*put this in the html, like in your page template or block or bean block or view. Following are for facebook, twitter, youtube and pinterest */
<i class="fab fa-facebook-f"></i><i class="fab fa-twitter"></i><i class="fab fa-youtube"></i><i class="fab fa-pinterest"></i>
marisqaporter / page-tpl.php
Last active Apr 2, 2018
to add full width hero images to drupal theme omega 3
View page-tpl.php
<!--marisa custom sub hero if statements
place in between slideshow and panel_fullwidth
<?php /* Custom Work: Sub Page Hero */
if(isset($node->type) && $node->type == 'page'){
$field_basic_hero_image = field_get_items('node', $node, 'field_basic_hero_image');
$hero_url = file_create_url($field_basic_hero_image[0]['uri']);
marisqaporter / hermio.js
Last active May 23, 2018
to change the search words in drupal search form
View hermio.js
/*replace Drupal.hermio.setInputPlaceHolder('search_block_form', 'Keywords', '#search-block-form'); */
/*with */
Drupal.hermio.setInputPlaceHolder('search_block_form', 'Search', '#search-block-form');
marisqaporter / hero-subpage.css
Created Mar 7, 2018
subhero code for full width
View hero-subpage.css
Panel Hero Sub Page (allowing for hero)
section#sub-hero {
width: 100%;
height: 100%;
max-height: 640px;
background-position: top center;
background-size: cover;
border-bottom: 4px solid #393530;
View pagetitlefromCBO
/* line 1942, ../sass/page.scss */
.main #page-title {
text-align: left;
padding: 3px 175px 16px 0;
@media (max-width:767px){
.main #page-title {
text-align: left;
marisqaporter / Background Image and Color
Created Mar 2, 2018
Background Image and Color with opacity on Image
View Background Image and Color
.headline {
background: #0055b7 url(../images/menorah-ko.png) no-repeat 50px;
color: white;
overflow-x: hidden;
background-size: 30%;
View drupal-custom-fonts.css
@font-face {
font-family: Neutra;
src: url('NeutraTextBook.otf'),
url('NeutraText-Book.woff') format('woff'),
url('NeutraText-Book.ttf') format('truetype');
@font-face {
font-family: Neutra-Bold;
marisqaporter / hexcolor.css
Created Mar 2, 2018
change the hex color
View hexcolor.css
.services-builder.style1 .iconimage {
background-color:purple /*whatever you want to replace purple*/;
View calendar.css
.fc-bgevent {
background-color: #54c242 !important;
opacity: 1;
View global.css
/* edit css 10-25-2017 mgp */
header#navbar {
display: none;
body header.roomify-header {
border-color: #e7e7e7;