Skip to content

Instantly share code, notes, and snippets.

@tigredanky
tigredanky / functions-favicon-admin-client.php
Last active June 4, 2021 19:22
WordPress Functions.php | Favicon Frontend & Admin Option
<?php
// FAVICON ADDITION
function add_my_favicon() {
if ( ! is_admin() ) {
//$favicon_path = get_site_url() . '/img/favicon-client.png';
$favicon_path = get_site_url() . '/i/favicon-client';
} else {
//$favicon_path = get_site_url() . '/img/favicon-admin.png';
$favicon_path = get_site_url() . '/i/favicon-admin';
@lots0logs
lots0logs / child-theme-functions-php-snippet.php
Created April 6, 2016 21:23
WordPress :: Divi Theme :: Disable Default Open Sans Font
<?php
/* DON'T copy the first line (above) if your functions.php already has it.
* ---------------------------------------------------------------------- */
function et_divi_fonts_url() {
$fonts_url = '';
/* Translators: If there are characters in your language that are not
* supported by Open Sans, translate this to 'off'. Do not translate
* into your own language.
*/