Skip to content

Instantly share code, notes, and snippets.

// Page with multiple items called for as articles.
<article class="landing-blog">
<section class="blog-list">
<article>1st Blog Post</article>
<article>2nd Blog Post</article>
<article>3rd Blog Post</article>
</section>
</article>
// Page with multiple items called for as a list.
// Basic page with a sidebar
<article class="landing-blog-detail">
<header>
Headliner + post meta (date, author, category)
</header>
Your article copy
<aside>
Your sidebar
</aside>
</article>
Headers
------------------
- splash
- banner
- hero
- feature
- leader
Containers
------------------
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:title" content="Site Name">
<meta property="og:description" content="Site Descriptions">
<meta property="og:url" content="Site URL">
<meta property="og:site_name" content="Site Name">
<meta property="article:publisher" content="https://www.facebook.com/FB_Page_Slug">
<meta property="og:image" content="FB Share Photo URL">
<meta name="twitter:card" content="summary">
<meta name="twitter:description" content="Site Description">
// Magnific lightbox settings
$('.ign-popup').magnificPopup({
type: 'inline',
preloader: false,
removalDelay: 500,
callbacks: {
beforeOpen: function() {
this.st.mainClass = this.st.el.attr('data-effect');
}
},
.container {
width: calc(100% + 20px) /* take the pixel value that you want to increase by*/
margin-left: -10px;
margin-rgiht: -10px;
}
//=================================
// FORMSTONE - SELECTER
//=================================
.selecter {
display: block;
margin-right: 6px;
position: relative;
width: 100%;
float: left;
@besimhu
besimhu / ACF Post Meta - Repeater.php
Last active April 30, 2016 05:14
Get ACF repeaters without using the ACF functions.
<?php
// get post ID
$pid = get_the_ID();
// get our repeater
$repeater = get_post_meta( $pid, 'acf_repeater_slug', true );
if( !empty($repeater) ) {
for( $i = 0; $i < $repeater; $i++ ) {
@besimhu
besimhu / ACF Post Meta - Single.php
Created July 24, 2015 13:02
Get ACF field without using the ACF functions.
<?php
// get post ID
$pid = get_the_ID();
// acf field
$acf_field = get_post_meta( $pid, 'acf_field_slug', true );
@besimhu
besimhu / ACF Post Meta - Flexible Content.php
Last active August 29, 2015 14:25
Get ACF flexible content without using ACF functions.
<?php
// get post ID
$pid = get_the_ID();
$flex_rows = get_post_meta( $pid, 'acf_flex_content', true );
if ( !empty($flex_rows) ) {
foreach( $flex_rows as $count => $row ) {