Skip to content

Instantly share code, notes, and snippets.

@Volnus
Volnus / wpcom-cdn.php
Last active April 27, 2020 15:48 — forked from zacscott/wpcom-cdn.php
Use the WP.com Photon image CDN without installing JetPack
<?php
/**
* Plugin Name: Photon CDN
* Version: 1.3
* Description: Use the WP.com Photon image CDN without installing JetPack
* Author: Scott Hartley
* Credit: Original by Zachary Scott
*/
namespace zacscott;
@Volnus
Volnus / loop-forums.php
Created February 9, 2018 15:44
Improved bbPress Forums Loop
<?php
/**
* Forums Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
function mobile_theme_color() {
$color = "#000";
//this is for Chrome, Firefox OS, Opera and Vivaldi
echo '<meta name="theme-color" content="'.$color.'">';
//Windows Phone **
echo '<meta name="msapplication-navbutton-color" content="'.$color.'">';
// iOS Safari
echo '<meta name="apple-mobile-web-app-capable" content="yes">';
echo '<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">';
}