Skip to content

Instantly share code, notes, and snippets.

View vbaimas's full-sized avatar
🎯
Focusing

Vasilis Baimas vbaimas

🎯
Focusing
View GitHub Profile
@vbaimas
vbaimas / functions.php
Last active July 1, 2018 23:39
Clients Carousel in WordPress using Custom Post Types, Advanced Custom Fields and Flexslider.
// Register Custom Post Type
function partner() {
$labels = array(
'name' => _x( 'partner', 'Post Type General Name', 'partner' ),
'singular_name' => _x( 'partner', 'Post Type Singular Name', 'partner' ),
'menu_name' => __( 'Partner', 'partner' ),
'name_admin_bar' => __( 'Partners', 'partner' ),
'archives' => __( 'Item Archives', 'partner' ),
'attributes' => __( 'Item Attributes', 'partner' ),
@vbaimas
vbaimas / functions.php
Last active July 1, 2018 23:40
Testimonials Carousel in WordPress using Custom Post Types, Advanced Custom Fields and Slick Carousel jQuery.
<?php
// Register Custom Post Type
function quote() {
$labels = array(
'name' => _x( 'quote', 'Post Type General Name', 'quote' ),
'singular_name' => _x( 'quote', 'Post Type Singular Name', 'quote' ),
'menu_name' => __( 'Quote', 'quote' ),
'name_admin_bar' => __( 'Quote', 'quote' ),
'archives' => __( 'Item Archives', 'quote' ),
@vbaimas
vbaimas / _spacing-helpers.scss
Created August 17, 2017 22:04 — forked from jacurtis/_spacing-helpers.scss
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels