Frykky
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Templatingyes i call it “100birbe” and i selected it
Look
this is my invoice.php. As you can see i deleted order-data-address td
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Templatingthis is original style.css
body {
background: #fff;
color: #000;
margin: 0cm;
font-family: ‘Open Sans’, sans-serif;
/* want to use custom fonts? https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-custom-fonts/ */
font-size: 9pt;
line-height: 100%; /* fixes inherit dompdf bug */
}i change (example) in
body {
background: #000;
color: #000;
margin: 0cm;
font-family: ‘Open Sans’, sans-serif;
/* want to use custom fonts? https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-custom-fonts/ */
font-size: 9pt;
line-height: 100%; /* fixes inherit dompdf bug */
}but my invoices are still white.
Nothing change ??Can you give me some hint to forward to developer?
Forum: Fixing WordPress
In reply to: hierarchical taxonomy performance very slowhttps://www.toscanafilmcommission.it/en/
go to production guide
if I “unplug” list of 8000 taxonomy values from Custom Post “PROFESSIONALS” it’s 2x maybe more faster
- This reply was modified 8 years ago by Frykky.
Forum: Developing with WordPress
In reply to: hijack ‘posts_pre_query’ with data from JSONThe problem is that after post-injection on line the
WP_Query->query method at line 3005 call get_post on each WP_Post injected
$this->posts = array_map( 'get_post', $this->posts );
This method of class post.php at line 537 call filter with parameter “raw”
The WP_Post->filter call
self::get_instance( $this->ID )
This method check if has in cache a post with ID=9999999. There isn’t so return false and try to find the post in database. There isn’t a post with that ID so it return false ?? ?? ?? ?? ??
Forum: Fixing WordPress
In reply to: hierarchical taxonomy performance very slowYes, CPT-UI but if necessary i can register it into function.php
Forum: Plugins
In reply to: [Slider - Ultimate Responsive Image Slider] slider in widgetHi,
it works!I bought Pro version and i made same changes.
Can you include these modification in your future updates to avoid overwriting?
Ty
Forum: Plugins
In reply to: [Slider - Ultimate Responsive Image Slider] slider in widgetclass widget_fst_news_ngg extends WP_Widget { function __construct() { parent::__construct( 'widget_fst_news_ngg', // Widget name will appear in UI __('Galleria Immagini', 'widget_fst_news_ngg_domain'), // Widget description array( 'description' => __( 'Galleria immagini allegata alla news', 'widget_fst_news_ngg_domain' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // This is where you run the code and display the output $post = get_queried_object(); $fst_post_ngg = get_post_meta($post->ID, 'fst_post_gallery', true); echo '<div>'; echo do_shortcode($fst_post_ngg); echo '</div>'; echo $args['after_widget']; } // Widget Backend public function form( $instance ) { if ( isset( $instance[ 'title' ] ) ) { $title = $instance[ 'title' ]; } else { $title = __( 'Galleria Immagini', 'widget_fst_news_ngg_domain' ); } // Widget admin form ?> <p> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> </p> <?php } // Updating widget replacing old instances with new public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; return $instance; } } // Class widget_fst_news_ngg ends here // Register and load the widget function wpb_load_widget() { register_widget( 'widget_fst_news_ngg' ); /* more widget */ } add_action( 'widgets_init', 'wpb_load_widget' );
this is the output code
<section class="widget widget_fst_news_ngg-3 widget_widget_fst_news_ngg"><h4>Galleria Immagini</h4><div> <script type="text/javascript"> jQuery( document ).ready(function( jQuery ) { jQuery( '#example3_719' ).sliderPro({ width: 1000, height: 500, autoplay: false, arrows: true, buttons: true, smallSize: 500, mediumSize: 1000, largeSize: 3000, //fade: true, thumbnailArrows: true, }); }); </script> <style> /* Example 3 */ #example3_719 .sp-selected-thumbnail { border: 4px solid #000; } /* #example3_ .title-in { font-weight: bolder; opacity: 0.7 !important; font-size: 1.2em; } #example3_ .desc-in { opacity: 0.7 !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); font-size: 1em; } */ #example3_719 .title-in { color: <br /> <b>Notice</b>: Undefined variable: RISP_Slide_In_Title_Color in <b>/var/hosting/www.fondazionesistematoscana.it/www/wp-content/plugins/ultimate-responsive-image-slider/uris-layout.php</b> on line <b>59</b><br /> !important; font-weight: bolder; text-align: center; } #example3_719 .title-in-bg { background: rgba(255, 255, 255, 0.7); !important; white-space: unset !important; max-width: 90%; min-width: 40%; transform: initial !important; font-size: 14px !important; } #example3_719 .desc-in { color: <br /> <b>Notice</b>: Undefined variable: RISP_Slide_In_Desc_Color in <b>/var/hosting/www.fondazionesistematoscana.it/www/wp-content/plugins/ultimate-responsive-image-slider/uris-layout.php</b> on line <b>74</b><br /> !important; text-align: center; } #example3_719 .desc-in-bg { background: rgba(<br /> <b>Notice</b>: Undefined variable: RISP_Slide_In_Desc_BG_Color in <b>/var/hosting/www.fondazionesistematoscana.it/www/wp-content/plugins/ultimate-responsive-image-slider/uris-layout.php</b> on line <b>78</b><br /> , <br /> <b>Notice</b>: Undefined variable: RISP_BG_Color_Opacity in <b>/var/hosting/www.fondazionesistematoscana.it/www/wp-content/plugins/ultimate-responsive-image-slider/uris-layout.php</b> on line <b>78</b><br /> ) !important; white-space: unset !important; width: 80% !important; min-width: 30%; transform: initial !important; font-size: 13px !important; } @media (max-width: 640px) { #example3_719 .hide-small-screen { display: none; } } @media (max-width: 860px) { #example3_719 .sp-layer { font-size: 18px; } #example3_719 .hide-medium-screen { display: none; } } </style> <h3 class="uris-slider-title"> </h3> <div class="slider-pro" id="example3_719"> <!---- slides div start ----> <div class="sp-slides"> <div class="sp-slide"> <img data-retina="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/16.jpg" data-large="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/16.jpg" data-medium="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/16.jpg" data-small="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/16.jpg" data-src="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/16.jpg" src="" class="sp-image"> </div> <div class="sp-slide"> <img data-retina="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/4.jpg" data-large="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/4.jpg" data-medium="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/4.jpg" data-small="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/4.jpg" data-src="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/4.jpg" src="" class="sp-image"> </div> <div class="sp-slide"> <img data-retina="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/9.jpg" data-large="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/9.jpg" data-medium="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/9.jpg" data-small="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/9.jpg" data-src="https://www.fondazionesistematoscana.it/wp-content/uploads/2012/10/9.jpg" src="" class="sp-image"> </div> </div> <!---- slides div end ----> <!-- slides thumbnails div end --> </div> <div style="display:none">Ultimate Responsive Image Slider Plugin Powered By Weblizar</div> </div></section>
Forum: Plugins
In reply to: [Slider - Ultimate Responsive Image Slider] slider in widgetdoesn’t work ??
Forum: Plugins
In reply to: [WP FullCalendar] Plugin diplay wrong dateproblem solved, ty
Forum: Fixing WordPress
In reply to: Problem attach image to postThe only solution that i found is to delete the image and reup it and attach to the new post