Skip to content

Instantly share code, notes, and snippets.

View crixlet's full-sized avatar

Aaron Hanson crixlet

View GitHub Profile
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
This isn't very hard. Just give the list centered text (e.g. ul.nav { text-align: center; }) and the list items inline-block (e.g. ul.nav li { display: inline-block; }). If you want to do it with margin for whatever reason, look into width: fit-content; (link).
@crixlet
crixlet / new_gist_file.php
Created December 3, 2013 17:34
proper way to add custom js
function wpb_adding_scripts() {
wp_register_script('custom_js', get_template_directory_uri() . '/js/func.js', array('jquery'), true);
wp_enqueue_script('custom_js');
}
add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );