Title: Fryvisuals's Replies | WordPress.org

---

# Fryvisuals

  [  ](https://wordpress.org/support/users/fryvisuals/)

 *   [Profile](https://wordpress.org/support/users/fryvisuals/)
 *   [Topics Started](https://wordpress.org/support/users/fryvisuals/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fryvisuals/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fryvisuals/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fryvisuals/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fryvisuals/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fryvisuals/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery by 10Web - Mobile-Friendly Image Gallery] Bug with Sticky Nav from Max Mega Menu](https://wordpress.org/support/topic/bug-with-sticky-nav-from-max-mega-menu/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/bug-with-sticky-nav-from-max-mega-menu/#post-10732847)
 * Awesome! Thank you for replying and adding a fix in the latest release. I really
   appreciate it.
 * I tested the update and it is resolved.
 * Thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smash Balloon Social Photo Feed – Easy Social Feeds Plugin] Use HTTPS URL for link to instagram account](https://wordpress.org/support/topic/use-https-url-for-link-to-instagram-account/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/use-https-url-for-link-to-instagram-account/#post-8997547)
 * [@craig-at-smash-balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
   The js fix can be made in sb-instagram.js lines 86 and 101.
    -  This reply was modified 9 years, 4 months ago by [Fryvisuals](https://wordpress.org/support/users/fryvisuals/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] Remove Generated Footer Scripts/Styles](https://wordpress.org/support/topic/remove-generated-footer-scriptsstyles/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-generated-footer-scriptsstyles/#post-8889344)
 * Here’s the fix
    `remove_action( 'wp_print_footer_scripts', array( Tribe__Customizer::
   instance(), 'print_css_template' ), 15 );`
 * Removing these styles while using the free plugin version with tribes default
   template styles does nothing to alter the display.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] Remove Generated Footer Scripts/Styles](https://wordpress.org/support/topic/remove-generated-footer-scriptsstyles/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-generated-footer-scriptsstyles/#post-8888857)
 * Found it this morning.
 * It’s located in customizer.php line 122
    `add_action( 'wp_print_footer_scripts',
   array( $this, 'print_css_template' ), 15 );` From Function:
 *     ```
       // If we don't have anything on the customizer don't print empty styles
       		// On Customize Page, we don't care we need this
       		if ( ! is_customize_preview() && empty( $css_template ) ) {
       			return false;
       		}
       // All sections should use this action to print their template
       		echo '<script type="text/css" id="' . esc_attr( 'tmpl-' . $this->ID . '_css' ) . '">';
       		echo $css_template;
       		echo '</script>';
   
       		// Place where the template will be rendered to
       		echo '<style type="text/css" id="' . esc_attr( $this->ID . '_css' ) . '">';
       		echo $this->parse_css_template( $css_template );
       		echo '</style>';
       ```
   
 * I don’t get why this is on every single page… Is it poor programming or laziness?
   Honestly, any plugin needs to enqueue their resources ONLY WHERE NEEDED. I don’t
   get it.
 * I’ll fix it myself.
    -  This reply was modified 9 years, 5 months ago by [Fryvisuals](https://wordpress.org/support/users/fryvisuals/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Max Mega Menu] Menu Bar Width not matching Theme](https://wordpress.org/support/topic/menu-bar-width-not-matching-theme/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/menu-bar-width-not-matching-theme/#post-8190161)
 * You have a class called .full-container that is wrapped around your navigation
   links. Its width is set to 1080px. To make the nav span full width, you must 
   delete that wrapping div.
 * Check your header.php file in your theme folder for the php wp_nav_menu or wherever
   the nav is located.
 * Oh, and make sure you are using a child theme or else your changes will be overridden
   when you update the theme.
    -  This reply was modified 9 years, 10 months ago by [Fryvisuals](https://wordpress.org/support/users/fryvisuals/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] Excerpt ellipses not displaying properly](https://wordpress.org/support/topic/excerpt-ellipses-not-displaying-properly/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years ago](https://wordpress.org/support/topic/excerpt-ellipses-not-displaying-properly/#post-6382230)
 * Thanks for the reply.
 * I found in my parent theme’s functions file.
 *     ```
       // Custom Excerpt
       function colabs_custom_excerpt( $limit = 30 ,$more = '&hellip;' ) {
       	global $post;
       	$print_excerpt = '<p>';
       	$output = $post->post_excerpt;
       	if ($output!=''){
       		$print_excerpt .= $output;
       	}else{
       		$content = get_the_content('');
       		$content = strip_shortcodes( $content );
       		$content = apply_filters('the_content', $content);
       		$content = str_replace(']]>', ']]>', $content);
       		$content = strip_tags($content);
       		$excerpt = explode(' ',$content, $limit);
       		array_pop($excerpt);
       		$print_excerpt .= implode(" ",$excerpt).$more;
       	}
       	$print_excerpt .= '</p>';
       	echo $print_excerpt;
       }
       ```
   
 * I replaced tribe-events/list/single-event.php “the_excerpt()” with colabs_custom_excerpt(
   75).
 * Fixed the issue
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Max Mega Menu] accordion in mobile for max mega menu](https://wordpress.org/support/topic/accordion-in-mobile-for-max-mega-menu/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/accordion-in-mobile-for-max-mega-menu/#post-6293375)
 * Could you perhaps change the top level down arrow to an “x” for mobile users 
   to close that section?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Debug Objects] Installed, Activated, White Screen…](https://wordpress.org/support/topic/installed-activated-white-screen/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/installed-activated-white-screen/#post-5207449)
 * I gave up on installing a debug plugin and revisited this one. When activating
   the plugin I got the fatal error below. Seems to be a bbpress issue. I tried 
   installing debug bar but that gave me no errors and broke my site to a white 
   screen.
 * `Fatal error: Uncaught exception 'ErrorException' with message 'bbp_setup_current_user
   was called <strong>incorrectly</strong>. The current user is being initialized
   without using $wp->init(). Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress"
   >Debugging in WordPress</a> for more information. (This message was added in 
   version 2.3.)' in /home/townes/clc.laserlance.com/wp-includes/functions.php:3370
   Stack trace: #0 [internal function]: metaBoxClass::handleError(1024, 'bbp_setup_curre...','/
   home/townes/cl...', 3370, Array) #1 /home/townes/clc.laserlance.com/wp-includes/
   functions.php(3370): trigger_error('bbp_setup_curre...') #2 /home/townes/clc.
   laserlance.com/wp-content/plugins/bbpress/includes/core/sub-actions.php(147):
   _doing_it_wrong('bbp_setup_curre...', 'The current use...', '2.3') #3 [internal
   function]: bbp_setup_current_user('') #4 /home/townes/clc.laserlance.com/wp-includes/
   plugin.php(505): call_user_func_array('bbp_setup_curre...', Array) #5 /home/townes/
   clc.laserlance.com/wp-includes/pluggable. in /home/townes/clc.laserlance.com/
   wp-includes/functions.php on line 3370`
 * Any help on resolving this issue would be great! Thanks
 * edit: Also have these defined in wp_config
 *     ```
       define('WP_DEBUG', true);
       define('WP_DEBUG_LOG', true);
       define('WP_DEBUG_DISPLAY', true);
       define('SAVEQUERIES', true);
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error when switching themes (WooThemes)](https://wordpress.org/support/topic/fatal-error-when-switching-themes-woothemes/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-switching-themes-woothemes/#post-5333882)
 * Fixed it. Simply removed BBPress plugin folders via FTP client and saw another
   fatal error. This time it was saying something about my custom plugins so I removed
   those. Site came back up and re-moved those plugins back.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Shortcode not working in Text Widget](https://wordpress.org/support/topic/shortcode-not-working-in-text-widget/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-in-text-widget/#post-4742818)
 * Having the same issue. Found a bunch of posts on this but adding the filter does
   nothing which is bizarre.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Slim Jetpack] Ok plugin, but not as many features and Jetpack.](https://wordpress.org/support/topic/great-plugin-3254/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/great-plugin-3254/#post-7846975)
 * uh, the title says Slim Jetpack… AKA, not as bulky as original Jetpack. I suggest
   using the original Jetpack plugin?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Admin deletion of Order does not deduct points from user](https://wordpress.org/support/topic/admin-deletion-of-order-does-not-deduct-points-from-user/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/admin-deletion-of-order-does-not-deduct-points-from-user/#post-5228484)
 * When trashing (**move to trash** – bulk option) an order via the dashboard screen
   for woocommerce, the points are not deducted. Points are deducted if the admin
   cancels the order by **viewing the order** and changing order status to **cancelled**.
   I feel there should be a deduction as well if the order is trashed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Admin deletion of Order does not deduct points from user](https://wordpress.org/support/topic/admin-deletion-of-order-does-not-deduct-points-from-user/)
 *  Thread Starter [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/admin-deletion-of-order-does-not-deduct-points-from-user/#post-5228300)
 * Looking through the woocommerce-points-and-rewards file structure I found:
 *     ```
       public function __construct() {
   
       		...more
   
       		// credit points back to the user if their order is cancelled or refunded
       		add_action( 'woocommerce_order_status_cancelled', array( $this, 'handle_cancelled_refunded_order' ) );
       		add_action( 'woocommerce_order_status_refunded', array( $this, 'handle_cancelled_refunded_order' ) );
       	}
       ```
   
 * I see the add_action of _woocommerce\_order\_status\_cancelled_.
 * Here’s the function it calls:
 *     ```
       public function handle_cancelled_refunded_order( $order_id ) {
   
       		global $wc_points_rewards;
   
       		$order = new WC_Order( $order_id );
   
       		// bail for guest user
       		if ( ! $order->user_id )
       			return;
   
       		// handle removing any points earned for the order
       		$points_earned = get_post_meta( $order->id, '_wc_points_earned', true );
   
       		if ( $points_earned > 0 ) {
   
       			// remove points
       			WC_Points_Rewards_Manager::decrease_points( $order->user_id, $points_earned, 'order-cancelled', null, $order->id );
   
       			// remove points from order
       			delete_post_meta( $order->id, '_wc_points_earned' );
   
       			// add order note
       			$order->add_order_note( sprintf( __( '%d %s removed.', 'wc_points_rewards' ), $points_earned, $wc_points_rewards->get_points_label( $points_earned ) ) );
       		}
   
       		// handle crediting points redeemed for a discount
       		$points_redeemed = get_post_meta( $order->id, '_wc_points_redeemed', true );
   
       		if ( $points_redeemed > 0 ) {
   
       			// credit points
       			WC_Points_Rewards_Manager::increase_points( $order->user_id, $points_redeemed, 'order-cancelled', null, $order->id );
   
       			// remove points from order
       			delete_post_meta( $order->id, '_wc_points_redeemed' );
   
       			// add order note
       			$order->add_order_note( sprintf( __( '%d %s credited back to customer.', 'wc_points_rewards' ), $points_redeemed, $wc_points_rewards->get_points_label( $points_redeemed ) ) );
       		}
       	}
       ```
   
 * I trace the code and find out that I don’t see the correct records being updated.
   Is it possible this part of the plugin is broken? I wish I could use debug bar
   or some debugging options but my site breaks when installing the popular debug
   bar. wp_debug is set to true and I get nothing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Advanced Hook Sniffer] PHP Error on activation](https://wordpress.org/support/topic/php-error-on-activation-2/)
 *  [Fryvisuals](https://wordpress.org/support/users/fryvisuals/)
 * (@fryvisuals)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/php-error-on-activation-2/#post-4684079)
 * I downloaded this today and it corrupted my plugins file so I reverted back to
   the old one. Not sure if it’s the same issue as above or a new one with the latest
   version.
 * Using 3.9.2

Viewing 14 replies - 1 through 14 (of 14 total)