Theme Translation?
Translation files must be named {locale}.po (e.g. en_US.po in order to be recognized. Rename your language translation file accordingly. See more in the Codex: i18n for developers.
Translation files must be named {locale}.po (e.g. en_US.po in order to be recognized. Rename your language translation file accordingly. See more in the Codex: i18n for developers.
After the kerfuffle of logging in and acquiring the theme, I got to the code: $comm = get_option( ‘woo_comments’ ); if ( ‘open’ == $post->comment_status && ($comm == ‘post’ || $comm == ‘both’ ) ) { comments_template( ”, true ); } Your comments are not showing because in the woothemes settings, they have not been … Read more
I’m not sure but it might have something to do with the html5blank_protocol_relative() function used by HTML5 Blank Theme. You could try removing the filters at L# 382 & 383 of the functions.php file. // Protocol relative URLs for enqueued scripts add_filter( ‘script_loader_src’, ‘html5blank_protocol_relative’ ); // Protocol relative URLs for enqueued styles add_filter( ‘style_loader_src’ , … Read more
I had the same problem: the template hierarchy is not serving up the right file from the hierarchy (at least it should serve index.php if there is no archive.php), but instead it gives a 404. My solution is to go to the wp-admin interface, select settings>permalinks and change the common settings to some other permalink … Read more
As WPTouch uses its own theme, we can’t hardcode certain functionality inside the regular theme, neither in a page/post template nor functions.php. So, a custom plugin is needed and the desired output made out of a Shortcode. Also, make sure WPTouch Restricted Mode is turned off in Advanced Options > Advanced Settings. But probably this … Read more
Try this Dynamic Header plugin function: get_media_header_url() instead of this one: show_media_header() It is defined as function get_media_header_url() { global $post; $post_id = $post->ID; //Declare the wpdb var and table name and run the query to see if there is a media object associated with this post global $wpdb; $table_name = $wpdb->prefix . “custom_headers”; $check_q … Read more
Add define(‘DISALLOW_FILE_MODS’,true); to your wp-config.php file. This will block users being able to use the plugin and theme installation/update functionality from the WordPress admin area. Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on it’s own DISALLOW_FILE_MODS will have the same effect). http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants … Read more
I can’t add comments yet, but do you get what Milo is saying? Just look at this section and it is as if there are no closing or tags for the classes post and post-preview. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class=”post-image”> <?php if ( has_post_thumbnail() ) … Read more
This question is misleading, I’m not sure you understand how Themes/Plugins work. It’s not that you have a plugin inside the theme. Rather the theme has plugin like features (or custom functionality). I personally find this to be bad practice and prefer when themes come with plugins instead of trying to bundle it all together. … Read more
If you’d use the get_categories() function to get all the categories, you can then loop through them. Partial pseudo code, but this will do the trick: $categories = get_categories( array() ); $colors = array(); foreach ( $categories as $category ) { $cat_meta = get_option( ‘meta_field_’ . $category->slug ); if (isset($cat_meta[‘color’])){ $colors[ $category->term_id ] = $cat_meta[‘color’]; … Read more