@font-face is not working in WordPress

Depending on your browser and platform you need to specify the font in different formats. See this example: @font-face { font-family: “LeagueGothic”; src: url(‘../fonts/league_gothic-webfont.eot’); src: url(‘../fonts/league_gothic-webfont.eot?#iefix’) format(‘eot’), url(‘../fonts/league_gothic-webfont.ttf’) format(‘truetype’), url(‘../fonts/league_gothic-webfont.woff’) format(‘woff’), url(‘../fonts/league_gothic-webfont.eot#iefix’) format(’embedded-opentype’), url(‘../fonts/league_gothic-webfont.svg’) format(‘svg’); font-weight: “normal”; font-style: “normal”; } If you just have the font in .ttf format and need the others, you can … Read more

How to add “Template” option in page attributes panel?

If there is everything OK with your template file (it should be placed in root directory of your theme) and the comment is correct then there can be one more thing… There is/was some mysterious bug, that was preventing template select from appearing. You can read about this bug here: https://core.trac.wordpress.org/ticket/18324 It’s closed, because it … Read more

Multisite theme control not working

I believe you’re not seeing how themes work on MS setup. Enabling a theme via the MS settings makes it “network enabled”. This means it is now “allowed” to be used on all the network sites. If you don’t enabled it, network sites will not even have access to it. Network Enabled does not mean … Read more

Translation of theme using child theme

You are using weird quotes: load_child_theme_textdomain( ‘ifeaturepro5-child’, get_stylesheet_directory() . ‘/languages’ ); } add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ ); use this: load_child_theme_textdomain( ‘ifeaturepro5-child’, get_stylesheet_directory() . ‘/languages’ ); } add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );

Problem only while using require_once() within functions.php

I noticed the URL of the custom Dashboard page is this… themes.php?page=functions-test.php Notice how the page is the name of my external functions in includes/functions-test.php. The problem is in this line, the one that refreshes the page just before the permission error… echo ‘<meta http-equiv=”refresh” content=”0;url=themes.php?page=functions.php&saved=true”>’; Now it seems so obvious. Look at the page … Read more

Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder

Okay I avoided the lazy way out =) For others that have my particular site requirements, here’s my workaround, of simply creating my own custom method in functions.php: function mysite_get_theme_directory_uri() { // chop up the url from get_stylesheet directory $parsedUrl = parse_url(get_stylesheet_directory_uri()); // chop up the ‘path’ index value $path = $parsedUrl[‘path’]; // make it … Read more