Skip to content

Instantly share code, notes, and snippets.

@iraarx
iraarx / functions.php
Created February 25, 2019 19:20 — forked from kisildev/functions.php
ACF Google Map
<?php
// Load scripts and styles
function add_scripts_and_styles() {
if ( ! is_admin() ) {
// For styles
wp_enqueue_style( 'main-style', get_template_directory_uri() . '/style.css', null, null );
// For scripts (js)
wp_enqueue_script('jquery');
wp_enqueue_script( 'main-js', get_template_directory_uri() . '/js/main.js', null, null, true );
// Map
@iraarx
iraarx / mixin.round-line-border.scss
Created February 16, 2019 13:47 — forked from cipas/mixin.round-line-border.scss
Sass mixin - round line border
@mixin circle($width, $border-width, $color) {
width: $width;
height: $width;
border: $border-width solid $color;
-webkit-border-radius: $width/2;
-moz-border-radius: $width/2;
border-radius: $width/2;
}