Skip to content

Instantly share code, notes, and snippets.

View marisqaporter's full-sized avatar

marisqaporter

View GitHub Profile
@marisqaporter
marisqaporter / acfrepeaters.php
Last active October 3, 2017 17:49
calling acf repeaters
<?php
/*repeater speakers */
if( have_rows('speakers') ):?>
<h2 class="entry-title center red">Speakers</h2><?php
?><div class="row stretch-xs center-xs"><?php
while ( have_rows('speakers') ) : the_row();
?>
<h2>How We Work</h2>
<!-- this is where I inserted my icon -->
<i class="fa fa-gears work-fa" aria-hidden="true"></i>
<!-- end Font Awesome icon -->
<?php
$args = array(
'post_type' => 'work_items', // enter your custom post type
'posts_per_page'=> '3', // return only 1 post
'orderby' => 'rand'
@marisqaporter
marisqaporter / fa.css
Created July 26, 2017 17:24
using font awesome
.work-fa {
font-size: 150px !important;
color: #84BA32;
margin-top: 0;
margin-bottom: 30px;
text-align: center;
display: block !important;
width: 100%;
}
@marisqaporter
marisqaporter / custom.css
Last active February 9, 2017 20:02
Leland's Header Changes
/*add to custom.css*/
.title-area {
float: left;
padding: 16px 0;
width: 100%;
max-width: 100%;
}
/*new by marisa */
media only screen and (max-width: 1140px) and (min-width: 993px)
.node-type-park .gallery-block-detail {
top: 407px!mportant;
}
.node-type-park .gallery-block-detail {
background-color: #008851!mportant;
color: #fff!mportant;
height: 277px!mportant;
@marisqaporter
marisqaporter / blog-query.php
Created December 19, 2016 18:19
a blog loop example
<?php
/**
* Archive Name: Blog
*/
get_header(); ?>
<div id="blog">
<div id="content">
@marisqaporter
marisqaporter / buyer-story-loop-lelands-inside-product.php
Created December 9, 2016 21:10
buyer-story-loop-lelands-inside-product.php
<!--buyer story -->
<div class="buyer-wrapper">
<?php
if ( get_query_var('paged') ) $paged = get_query_var('paged');
if ( get_query_var('page') ) $paged = get_query_var('page');
$query = new WP_Query
@marisqaporter
marisqaporter / product-loop-lelands.php
Created December 7, 2016 20:47
product-loop-lelands
<?php
$args = array(
'post_type' => 'product', // enter your custom post type
'posts_per_page'=> '9', // return only 1 post
'orderby' => 'menu_order', // order
'order' => 'ASC'
);
@marisqaporter
marisqaporter / hikesingle-3.css
Created November 30, 2016 23:35
hikesingle-3.css
/* start all page related generic css */
.page-civicrm-simple #printer-friendly {display: none;}
#dialog-park-description a {color: #008851;}
a {color: #008851;}
.page-hike-finder-map h1 {display:none;}
/* start all page related generic css */
.page-civicrm-simple #printer-friendly {display: none;}
#dialog-park-description a {color: #008851;}
a {color: #008851;}
.page-hike-finder-map h1 {display:none;}