Skip to content

Instantly share code, notes, and snippets.

//* Add new featured image sizes
add_image_size( 'home-bottom', 150, 100, TRUE );
add_image_size( 'home-top', 400, 200, TRUE );
@pradeepdotco
pradeepdotco / index.html
Created August 21, 2015 17:42
CSS inline
<html>
<head>
<title> Learning CSS for WordPress </title>
</head>
<body style="background-color: green;">
<header>
<span>Adding Inline CSS in a Document</span>
<h1 style="color: white">Inline CSS in a Document</h1>
[gist https://gist.github.com/pradeepdotco/761c6bc617b53ea6fc38 /]
[gist id="761c6bc617b53ea6fc38"]
[gist id="9b1307f153f4abe352a4" file="media-control-snippet.php"]
[gist id="9b1307f153f4abe352a4" file="media-control-snippet.php" lines="2-5"]
[gist id="9b1307f153f4abe352a4" file="media-control-snippet.php" highlight="7"]
@pradeepdotco
pradeepdotco / content medium IFTTT
Created October 15, 2015 21:13
Content HTML Code for Medium IFTTT
<p><a href="{{PostUrl}}"><img src="{{PostImageUrl}}"></a></p>
<p>{{PostContent}}</p>
<p><em>Originally published on <a href="{{PostUrl}}">Wordpress</a></em></p>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-your publisher id here",
enable_page_level_ads: true
});
</script>
@pradeepdotco
pradeepdotco / Comments-Edit-Button.php
Created November 9, 2015 21:50
Comments Edit Button
<?php edit_comment_link(__('{Quick Edit}'), ''); ?>