WP 3.1 upgrade breaks AutoFocus+ theme
There’s an update available.
There’s an update available.
it sounds from your text that you are using the number you gave it under ‘page attributes’ ‘order’; use the page ID instead for the ‘exclude’.
This isn’t really WordPress specific, but from the server perspective it would add additional http requests for visitors to load additional css files, versus pulling the same site-wide css file from cache. From a css perspective, I prefer to keep it all in one file. Some people prefer to organize things differently, like all text … Read more
$domain is the unique identifier for retrieving translated strings. It is set in functions.php <?php load_theme_textdomain( $domain, $path ) ?> ex: load_theme_textdomain(‘my_theme’, get_template_directory() . ‘/languages’); <?php _e( ‘Translate this text’, ‘my_theme’ ) ?> If you don’t have a translation file but want’t to make it translatable just define the textdomain. load_theme_textdomain(‘my_theme’);
Alternate approach (if you want/need to keep this in functions.php and go via hooks instead of modifying template) would be something like this: add_action( ‘pre_get_posts’, ‘pre_get_posts_home’ ); function pre_get_posts_home( $query ) { global $wp_query; if( $wp_query == $query && $query->is_home ) $query->set( ‘posts_per_page’, 1 ); }
Short answer: NO! I’ve asked a similar question before mysql order by serialized data? and the answer i got is: The only possible case when serialized data is acceptable is when you don’t need to search , filter or order by through that data. In all other cases – store your data as a separated … Read more
It’s really not a “wordpress” specific, it’s just the css. You just give it a css for mobile browsers. That’s it. here are few good readings on how to get about the css for mobile: http://www.html5rocks.com/en/mobile/mobifying.html http://net.tutsplus.com/tutorials/html-css-techniques/responsive-web-design-a-visual-guide/ if you still have some questions, feel free to ask. 😉
As this is a commercial Theme, it is difficult to troubleshoot the problem since we don’t have access to the Theme template files. For instance, the parse error message indicates an endwhile issue in Line 1, but in your pasted code, Line 1 is a variable definition. You may need to consult WPZoom for support.
I would go with a Widgetized footer. If you want to go the extra mile, rather than create Theme Options, simply create a custom Widget, e.g. Footer Contact Details, that has editable text inputs for Company Name, Address Lines 1 and 2, Phone/Fax, and Email.
Use a gettext filter and match against the text. add_filter( ‘gettext’, ‘filter_published_on’, 10000, 2 ); function filter_published_on( $trans, $text ) { if( ‘Published on: <b>%1$s</b>’ == $text ) { global $post; switch( $post->post_type ) { case ‘your-posttype’: return ‘Whatever on: <strong>%1$s</strong>’; break; default: return $trans; break; } } return $trans; } The alternative would be … Read more