Skip to content

Instantly share code, notes, and snippets.

@Volnus
Volnus / wpcom-cdn.php
Last active Apr 27, 2020 — forked from zacscott/wpcom-cdn.php
Use the WP.com Photon image CDN without installing JetPack
View wpcom-cdn.php
<?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 Feb 9, 2018
Improved bbPress Forums Loop
View loop-forums.php
<?php
/**
* Forums Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
View meta-color
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">';
}