krnauta
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: Blog sometimes loads as XMLHi,
Same to me. Do you solved the problem?
Forum: Plugins
In reply to: [Taxonomy Images] Get only de active termHi,
I find the solution
<?php print apply_filters( 'taxonomy-images-list-the-terms', '', array( 'after' => '</ul>', 'after_image' => '</li>', 'before' => '<ul class="taxonomy-images-the-terms">', 'before_image' => '<li>', 'image_size' => 'thumbnail', 'post_id' => 0, 'taxonomy' => 'category', ) ); ?>
Forum: Fixing WordPress
In reply to: Print imageHi,
I found the solutions. Maybe is useful for somebodySource:
https://dynom.nl/jquery/print_popup.html
<script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> // <!-- /* * See: https://blog.dynom.nl/archives/Javascript-printing-a-popup-window_20091029_52.html */ /** * To put it in jQuery terms: */ Popup = { init : function () { $('a.action_print').bind('click', Popup.printIt); }, printIt : function () { var win = window.open('', 'Image', 'resizable=yes,...'); if (win.document) { win.document.writeln('<img src="'+ $(this).attr('href') +'" alt="image" />'); win.document.close(); win.focus(); win.print(); } return false; } } $(document).ready(function () { Popup.init(); }); // --> </script>
And put this in your theme:
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); $urls = $thumb['0']; echo '<a class="action_print" href="'.$urls.'">Print image</a>'; ?>
Forum: Fixing WordPress
In reply to: Print imageSorry the web is in locahost
The html code:
<script language="javascript"> function imprimer(){ fenetre=window.open("https://localhost:8888/cocina/wp-content/uploads/2012/07/leon.jpg" ); fenetre.print(); fenetre.top.close(); } </script><a href="javascript:imprimer()">Imprimer</a>
The print windows its opening Ok, but not image
Forum: Fixing WordPress
In reply to: Print imageThks, but doesn’t work…
Maybe the best idea it’s make a print.css
Viewing 5 replies - 1 through 5 (of 5 total)