Skip to content

Instantly share code, notes, and snippets.

@umedard
umedard / header.php
Created Sep 9, 2020 — forked from kosinix/header.php
WordPress basic CSS for styling nav menus with wp_page_menu taken into account. Supports sub-menus as dropdowns.
View header.php
<?php
// Somewhere in your header.php add this. container_class and menu_class should match the CSS main class.
wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'nav-menu', 'menu_class' => 'nav-menu' ) );
@umedard
umedard / gulpfile.js
Created Jan 5, 2020 — forked from darylldoyle/gulpfile.js
Default Gulpfile
View gulpfile.js
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var autoprefixer = require('gulp-autoprefixer');
var minifycss = require('gulp-minify-css');