Skip to content

Instantly share code, notes, and snippets.

<!--Jumbotron-->
<div class="jumbotron">
<h1 class="h1-responsive">Hello, world!</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<hr class="my-2">
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
<p class="lead">
<a class="btn btn-primary btn-lg" role="button">Learn more</a>
</p>
*/Normal loop
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
*/MP Loop
<?php while ( have_posts() ) : the_post(); ?>
@devloprs
devloprs / output from query
Created January 2, 2017 11:01
WPMUDev Testing output
Can I say something silly like:
<div class="mp_product_categories prod_card_v2" ' . __( 'Categorized in ', 'mp' ),>
<h1 class=”blah blah”>’</h1>,
<div class=”blah”> <h2>’</h2>,
<div class=”blah”><h2>’ </h2>
<div>'
</div>
</div>
</div>
<div data-spy="scroll" data-target="#scrollspy1" data-offset="0">
<!--Section: Magazine v.1-->
<section class="section magazine-section" id="section1">
<!--Section heading-->
<h1 class="section-heading">Section title</h1>
<!--Section description-->
<p class="section-description">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
@devloprs
devloprs / Dev-Install node.js.txt
Created January 7, 2017 07:04
Dev-Install node.js
curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install --yes nodejs
// SASS style sheet */
// Palette color codes */
// Palette URL: http://paletton.com/#uid=c0h2Y1s3r0kxLkgxfIWN4x7++gtak0Q */
// Feel free to copy&paste color codes to your application */
// As hex codes */
$color-primary-0: #A13200; // Main Primary color */
/* CSS - Cascading Style Sheet */
/* Palette color codes */
/* Palette URL: http://paletton.com/#uid=c0h2Y1s3r0kxLkgxfIWN4x7++gtak0Q */
/* Feel free to copy&paste color codes to your application */
/* As hex codes */
.color-primary-0 { color: #A13200 } /* Main Primary color */
/* CSS - Cascading Style Sheet */
/* Palette color codes */
/* Palette URL: http://paletton.com/#uid=c0h2Y1s3r0kxLkgxfIWN4x7++gtak0Q */
/* Feel free to copy&paste color codes to your application */
/* As hex codes */
.color-primary-0 { color: #A13200 } /* Main Primary color */
@devloprs
devloprs / SF-BS-SP-template
Created January 11, 2017 09:04
SF-BS-SP-template
<div class="container-fluid y">
<h1>[wpv-post-title output='sanitize']</h1>
<div class="row">
<div class="col-sm-8 .im" style="background-color:lavender">
[wpv-woo-product-image size='shop_single' output='img_tag' enable_third_party_filters='no' gallery_on_listings='no']
<div class="row">
<div class="col-sm-6 a2c">
[wpv-woo-buy-options add_to_cart_text='Add to Cart']
</div>