This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#transparency { | |
text-align: center; | |
} | |
#controls span { | |
padding-right: 2em; | |
cursor: pointer; | |
} | |
#cubeContainer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Taken from https://imelgrat.me/security/wordpress-htaccess-file-protect/ | |
# Prevent access to .htaccess and .htpasswd files | |
<files ~ "^.*\.([Hh][Tt][Aa])"> | |
order allow,deny | |
deny from all | |
satisfy all | |
</files> | |
# Deny access to wp-config.php file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
/* Delete all margins and paddings from Gallery items */ | |
/* Check the article at: https://imelgrat.me/css/3d-gallery-css3-transforms/ */ | |
.gallery-container * { | |
margin: 0; | |
padding: 0; | |
} | |
.gallery-container { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Reorder post-list columns, adding a word-count column after the title column. | |
* | |
* This code assumes a new column named "wordcount" was already. | |
* Check the link for the whole process. | |
* | |
* @link https://imelgrat.me/wordpress/customize-wordpress-post-management-page/ | |
* | |
* @param array $defaults List of default post-list columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add a word-count column to WordPress Posts List (Dashboard view). | |
* | |
* Custom code for adding a new column to the posts list. | |
* The new column will contain the number of words in the post | |
* | |
* @link https://imelgrat.me/wordpress/customize-wordpress-post-management-page/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Count Post Words. | |
* | |
* Custom function that takes a WordPress post ID and returns the number of words in the post. | |
* You should paste it on your theme's functions.php file. | |
* | |
* @link https://imelgrat.me/wordpress/customize-wordpress-post-management-page/ | |
* | |
* @param int $post_id The Post ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context":"http://schema.org", | |
"@type":"JobPosting", | |
"baseSalary": | |
{ | |
"@type":"MonetaryAmount", | |
"currency":"USD", | |
"value": | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json">{ | |
"@context": "http://schema.org", | |
"@type": "Article", | |
"author": { | |
"@type": "Person", | |
"name": "Ivan Melgrati" | |
}, | |
"datePublished": "2018-02-01", | |
"description": "This article is about structured data" | |
}</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple example showing how to tag a blog post using RDFa (Resource Description Framework) | |
* | |
* @link https://imelgrat.me/json-xml/structured-data-google-recipes-jobs/ | |
*/ | |
?> | |
<div vocab="http://schema.org/" typeof="Article"> | |
<div> <span property="name">Structured Data: Helping Google find recipes and jobs</span> by <span property="author">Ivan Melgrati</span></div> | |
<div property="datePublished" content="2018-02-01">Published on Feb 1, 2018</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple example showing how to tag a blog post using Microdata | |
* following some of Schema.org’s properties used to define an “Article”. | |
* | |
* @link https://imelgrat.me/json-xml/structured-data-google-recipes-jobs/ | |
*/ | |
?> | |
<div itemscope itemtype="http://schema.org/Article"> | |
<div> |