germanw
Forum Replies Created
-
Not sure about full size but you can disable comments by adding the following code to functions.php
function filter_media_comment_status( $open, $post_id ) { $post = get_post( $post_id ); if( $post->post_type == 'attachment' ) { return false; } return $open; } add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
I found this on: https://www.wpbeginner.com/wp-tutorials/how-to-disable-comments-on-wordpress-media-attachments/
Forum: Themes and Templates
In reply to: About multilanguage blogging in wordpressI had the same requirement as you did so I read this post and went off to try xLanguage but i did not like it at all. The inteface is very limited, hard to use and seems buggy to me.
After that i tried using qTranslate and it is MUCH better! First off, most of the blog gets translated automatically (even tags, rss feeds, WP core, pages, etc). Then you can just have to edit the templates using some special tags and polish the details.
A simple example:
<?php _e("<!--:en-->Engish Text<!--:--><!--:es-->Texto en espa?ol<!--:-->"); ?>
Would render “English Text” in the engish pages, and “Texto en espa?ol” in the Spanish pages.
But you can use this same technique for more “complex” things such as linking to two different CSS pages, one for each language:
<link rel="stylesheet" type="text/css" href="https://www.yoursite.com/wp-content/themes/theme/<?php _e("<!--:en-->english<!--:--><!--:es-->spanish<!--:-->"); ?>.css" />
Would link to english.css and spanish.css respectively.
And you can do the same for images, links, whatever you like!
Hope this helps!