Skip to content

Instantly share code, notes, and snippets.

View marisqaporter's full-sized avatar

marisqaporter

View GitHub Profile
@marisqaporter
marisqaporter / font.html
Last active May 23, 2018 20:41
Using font awesome on drupal
/*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
marisqaporter / page-tpl.php
Last active April 2, 2018 22:26
to add full width hero images to drupal theme omega 3
<!--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
marisqaporter / hermio.js
Last active May 23, 2018 17:44
to change the search words in drupal search form
/*replace Drupal.hermio.setInputPlaceHolder('search_block_form', 'Keywords', '#search-block-form'); */
/*with */
Drupal.hermio.setInputPlaceHolder('search_block_form', 'Search', '#search-block-form');
@marisqaporter
marisqaporter / hero-subpage.css
Created March 7, 2018 20:19
subhero code for full width
/*-------------------------------------------
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;
@marisqaporter
marisqaporter / pagetitlefromCBO
Created March 2, 2018 23:05
page title from CBO
/* 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
marisqaporter / Background Image and Color
Created March 2, 2018 22:29
Background Image and Color with opacity on Image
.headline {
background: #0055b7 url(../images/menorah-ko.png) no-repeat 50px;
color: white;
overflow-x: hidden;
background-size: 30%;
position:relative;
}
@font-face {
font-family: Neutra;
src: url('NeutraTextBook.otf'),
url('NeutraText-Book.woff') format('woff'),
url('NeutraText-Book.eot'),
url('NeutraText-Book.ttf') format('truetype');
}
@font-face {
font-family: Neutra-Bold;
@marisqaporter
marisqaporter / hexcolor.css
Created March 2, 2018 19:57
change the hex color
.services-builder.style1 .iconimage {
background-color:purple /*whatever you want to replace purple*/;
}
.fc-bgevent {
background-color: #54c242 !important;
opacity: 1;
}
@marisqaporter
marisqaporter / global.css
Created October 26, 2017 04:15
global.css
/* edit css 10-25-2017 mgp */
header#navbar {
display: none;
}
body header.roomify-header {
border-color: #e7e7e7;