Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond. I am also slow as a person.

Salvatore Capolupo salvatorecapolupo

💭
I may be slow to respond. I am also slow as a person.
Block or report user

Report or block salvatorecapolupo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Miglior corso SEO Roma Alessandrino
Ah, che bello il corso SEO! Molto, molto fico!
Il corso nostro corso SEO (Search Engine Optimization) ti permetterà di diventare un professionista SEO.
Ah, che fico il corso SEO! Molto, molto bello!
Cerchi un corso seo copywriting roma ? Ah ma Francesco oggi ha detto che il copywriter è quello che fa anche marketing, e questo secondo me è molto vero.
La capacità di scrivere testi ottimizzati sui motori è bellissima e ti rende fico; ma tanto eh!
Ah, che bello il corso SEO! Molto, molto bello!
Cosa imparerai nel corso SEO?
Cos’è la SEO – definizioni:
Differenza fra Ottimizzazione On page e Off page;
@salvatorecapolupo
salvatorecapolupo / gist:8ea42445d9fe1cce5991250876fd5b0d
Created Dec 8, 2019
Most common script JS/ CSS styles loaded by wordpress plugins and theme. Mantain them on every page just if really needed. Useful while using i.e Assets Cleanup plugin for improving PageSpeed Insights
View gist:8ea42445d9fe1cce5991250876fd5b0d
- Handle: cookie-law-info, cookie-law-info-gdpr - CSS/JS for Cookie Privacy plugin
- Handle: jetpack-photon: Jetpack CDN
- to be continued
View .htaccess example for good PageSpeed Insights - WordPress
<IfModule mod_headers.c>
<FilesMatch "\\.(ico|gz)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\\.(jpe?g|png|gif|swf|flv|pdf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js|css)$">
Header set Cache-Control "max-age=3600, private"
</FilesMatch>
@salvatorecapolupo
salvatorecapolupo / Ebook gratuiti per SEO e web-marketing in italiano
Last active Nov 21, 2019
Ebook per studiare la SEO ed il web marketing, in italiano. Lista aggiornata al 21 novembre 2019. Suggerisci una risorse (purchè sia gratuita) a s.capolupo@gmail.com, se ti va ;-)
We couldn’t find that file to show.
@salvatorecapolupo
salvatorecapolupo / referrer-basis-redirect
Created Sep 21, 2019
This is useful for some backlinks "recovery".
View referrer-basis-redirect
<?PHP
function smart_seo_redirect(){
if ( isset($_SERVER['HTTP_REFERER']) ){
$referrer = $_SERVER['HTTP_REFERER'];
$parse = parse_url($referrer);
$referrer = $parse['host'];
$matches = [];
$matches[]= preg_match('/cool_referral_name/', $referrer, $matches);
@salvatorecapolupo
salvatorecapolupo / FAQPage-rich-snippets.php
Created Sep 21, 2019
Dynamic WordPress FAQPage Rich Snippets - use this in a plugin or functions.php
View FAQPage-rich-snippets.php
<?PHP
function add_rich_snippets_content( $content ) {
global $post;
$post_ID = $post->ID;
$page_title = get_the_title ( $post_ID );
$page_object = get_post( $post_ID );
$page_excerpt = wp_strip_all_tags ( $page_object->post_content );
$page_excerpt = preg_split ("/\s/", $page_excerpt);
@salvatorecapolupo
salvatorecapolupo / siti-guest-post
Last active Sep 15, 2019
Siti che ammettono guest post (aggiornata al 15 settembre 2019)
View siti-guest-post
- fai.informazione.it (basta registrarsi gratuitamente)
- recesiti.wordpress.com (info trovalost@gmail.com)
- leultime.info (info trovalost@gmail.com)
- medium.com (basta registrarsi)
- linkedin.com (c'è un blog pubblico che si può attivare)
- comunicati.net (basta registrarsi)
- contenutigratis.altervista.org (basta registrarsi, soggetto a moderazione)
- comunicati-stampa.net (basta registrarsi, soggetto a moderazione)
View Useful RESTful API for WordPress
* Enumerate Users
wp-json/wp/v2/users
- Example
curl https://example.com/wp-json/wp/v2/users
@salvatorecapolupo
salvatorecapolupo / track-click-analytics.js
Created Sep 1, 2019
Simple way to add utm_medium / utm_source to any inner link inside your website, as described well here: https://support.google.com/analytics/answer/1033867?hl=en
View track-click-analytics.js
jQuery(document).ready(function( $ ){
//track single link
var original_link1 = jQuery("a#single").attr('href');
jQuery(elem).attr('href', original_link + '?utm_source=A&utm_medium=B&utm_campaign=C');
//track multi-links
var link_group_identifier = 'a.group';
jQuery( link_group_identifier ).each(function(i, elem) {
var original_link = jQuery(elem).attr('href');
@salvatorecapolupo
salvatorecapolupo / open-graph.html
Last active Aug 18, 2019
Facebook Open Graph HTML basic template
View open-graph.html
<meta property="og:locale" content="it_IT" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Questo apparirà come titolo - This is title" />
<meta property="og:description" content="This is description - Questa invece sarà la descrizione del link corrispondente a questa pagina." />
<meta property="og:url" content="https://url.sito/path/" />
<meta property="og:site_name" content="URL Sito" />
<meta property="article:author" content="https://www.facebook.com/pippo.pappo" />
<meta property="og:image" content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/the_image_you_like.jpg" />
You can’t perform that action at this time.