Skip to content

Instantly share code, notes, and snippets.

View fitodac's full-sized avatar
:octocat:
now on github

fitodac fitodac

:octocat:
now on github
View GitHub Profile
@fitodac
fitodac / not-recommended-meta-elements.html
Created June 2, 2016 12:59
Meta Elements: Not Recommended
@fitodac
fitodac / head-links.html
Created June 2, 2016 13:02
Link Head Elements
<!-- For IE 10 and below -->
<!-- No link, just place a file called favicon.ico in the root directory -->
<!-- For IE 11, Chrome, Firefox, Safari, Opera -->
<link rel="icon" href="path/to/favicon-16.png" sizes="16x16" type="image/png">
<link rel="icon" href="path/to/favicon-32.png" sizes="32x32" type="image/png">
<link rel="icon" href="path/to/favicon-48.png" sizes="48x48" type="image/png">
<link rel="icon" href="path/to/favicon-62.png" sizes="62x62" type="image/png">
<link rel="icon" href="path/to/favicon-192.png" sizes="192x192" type="image/png">
<!-- More info: https://bitsofco.de/all-about-favicons-and-touch-icons/ -->
@fitodac
fitodac / social-head-tags.html
Created June 2, 2016 13:10
Social Head Tags
<!-- FACEBOOK / Open Graph -->
<meta property="fb:app_id" content="123456789">
<meta property="og:url" content="https://example.com/page.html">
<meta property="og:type" content="website">
<meta property="og:title" content="Content Title">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:description" content="Description Here">
<meta property="og:site_name" content="Site Name">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="">
@fitodac
fitodac / browser-platform-head-tags.html
Created June 2, 2016 13:16
Browser / Platform head tags
<!-- APPLE IOs -->
<!-- Smart App Banner -->
<meta name="apple-itunes-app" content="app-id=APP_ID,affiliate-data=AFFILIATE_ID,app-argument=SOME_TEXT">
<!-- Disable automatic detection and formatting of possible phone numbers -->
<meta name="format-detection" content="telephone=no">
<!-- Add to Home Screen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@fitodac
fitodac / wp-shortcodes.php
Created June 2, 2016 23:11
Wordpress Shorcodes
function shortURL() {
return 'https://fitodac.com/';
}
add_shortcode('myurl', 'shortURL');
@fitodac
fitodac / CPT-in-taxonomy.php
Created June 11, 2016 22:27
Get custom post type data in taxonomy view
$currentTaxonomy = get_query_var('taxonomy');
if ($currentTaxonomy) {
$taxObject = get_taxonomy($currentTaxonomy);
var_dump($taxObject);
}
@fitodac
fitodac / owl-css.html
Last active June 30, 2016 18:09
Add owl css to website
<link rel="stylesheet" href="owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="owlcarousel/owl.theme.default.min.css">
@fitodac
fitodac / gist:480d855b53f325ee779232e316d9d0a9
Last active August 1, 2016 19:25
geolocation agroclima
var $lat,
$lon,
$ini = 0,
$ini_data_error = false;
/*------------------------------------*/
/* DATOS ACTUALES */
/*------------------------------------*/
var date = new Date(),
@fitodac
fitodac / wp-redirect.txt
Last active October 23, 2018 03:11
WordPress: redirect
<?php wp_redirect( home_url() ); exit; ?>