Translated my theme (translation not showing up)

You have incomplete code. You register your Theme’s textdomain, but don’t actually tell WordPress to load your translation files. To this: load_theme_textdomain(‘INTERluminaires’, get_template_directory() . ‘/languages’); Add this: $locale = get_locale(); $locale_file = get_template_directory() . “/languages/$locale.php”; if ( is_readable( $locale_file ) ) { require_once( $locale_file ); } Or, altogether (and wrapped properly in a callback): <?php … Read more

How to set different settings for a mobile theme?

Just wrap you code up in a conditional: if ( $GLOBALS[‘is_iphone’] ) { // do funky stuff for mini screens } global $is_iphone; will trigger TRUE for all mobile devices incl. tablets. Edit for WP 3.4+ Now there’s wp_is_mobile() to make checks for User-Agent. It’s basically a wrapper for $is_iphone and does the same.

Can i have a single wordpress site to have two themes ( one for pc other for mobiles)

If you don’t mind getting your hands dirty with code you could combine both themes into the same folder. IE: wp-content/themes/yourtheme/secondtheme Then add the code in the header.php for your primary theme to check if its a mobile site and send the user to wp-content/themes/yourtheme/secondtheme/index.php Probably a pretty big nightmare. The proper way of doing … Read more

Confit theme on WordPress.org

WordPress.com has now made the theme downloadable via a ZIP file from the theme’s page at: http://theme.wordpress.com/themes/confit/ After installing the theme from within your dashboard, it will then show a message asking if you also want to install their “WordPress.com Theme Updates” plugin.

Custom theme folder

The default theme directory is registered like this in wp-settings.php // Register the default theme directory root register_theme_directory( get_theme_root() ); where function get_theme_root( $stylesheet_or_template = false ) { global $wp_theme_directories; if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { // Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory. // … Read more

404 Error while accessing the font files

Please use short path file url rather then absolute path. So code is like: @font-face{ /* for IE */ font-family:FontFamily; src:url(Font.eot); } @font-face { /* for non-IE */ font-family:FontFamily; src:url(http://) format(“No-IE-404”),url(Font.ttf) format(“truetype”); } Make sure that readable web has released it’s first @font-face related software utility for creating natively compressed EOT files quickly and easily. … Read more

how to remove padding from left and right side? [closed]

Use the developer tools in your browser (i.e inspector in Chrome or firebug in Firefox) to see where the padding is coming from. Either the padding is applied to something other than the body, or the padding is applied to the body but is still overriding your CSS. For example: body.class { padding: 20px; } … Read more