WPSlash

WooFood Popup Compatibility with Shortcodes Ultimate

Wednesday April 8, 2020

In case you are using WooFood with and using also Shortcode Ultimate Plugin you will have noticed that styles are not loaded inside the popup.

By using the following code on your functions.php on your child theme you will be able to load normally the css and js assets inside popup

function PREFIX_su_force_assets() {

  if ( ! function_exists( 'su_query_asset' ) ) {
    return;
  }

  // Shortcode styles
  su_query_asset( 'css', 'su-shortcodes' );

  // Icons
  // For shortcodes with icons like spoiler or service
  su_query_asset( 'css', 'su-icons' );

  // Animations
  su_query_asset( 'css', 'animate' );

  // jQuery
  su_query_asset( 'js', 'jquery' );

  // Lightboxes
  // lightbox, exit_popup, splash_screen, image_carousel w/ lightbox
  su_query_asset( 'css', 'magnific-popup' );
  su_query_asset( 'js', 'magnific-popup' );

  // Shortcode scripts
  // tabs, spoiler, image_carousel, etc.
  su_query_asset( 'js', 'su-shortcodes' );

  // Extra Shortcodes add-on
  su_query_asset( 'css', 'owl-carousel' );
  su_query_asset( 'js', 'owl-carousel' );
  su_query_asset( 'css', 'shortcodes-ultimate-extra' );
  su_query_asset( 'js', 'shortcodes-ultimate-extra' );

}

add_action( 'wp_head', 'PREFIX_su_force_assets' );

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials

How to Build a Customer Loyalty and Rewards Program for Your WooCommerce Restaurant: Points, Punch Cards, and VIP Tiers to Drive Repeat Orders (Complete Guide)

Why Restaurant Loyalty Programs Matter for Online Ordering A customer places their first order through your restaurant’s website. The food arrives hot, the experience is seamless, and they’re satisfied. But will they come back? Without a deliberate strategy to encourage repeat visits, there’s a strong chance they’ll drift to a competitor or default back to […]
April 7, 2026
Tutorials

How to Secure Your WooCommerce Restaurant Website: Protect Customer Payment Data, Prevent Hacking, and Set Up SSL, Firewalls, and PCI Compliance (Complete Guide)

Why Restaurant Website Security Matters More Than You Think A single data breach can shut down a restaurant faster than a failed health inspection. That’s not hyperbole — when a small restaurant loses customer credit card data, the average cost of remediation, fines, and lost business can reach tens of thousands of dollars. For an […]
April 7, 2026
Tutorials

How to Handle Allergen Labeling, Tax Configuration, and GDPR Compliance for Your WooCommerce Restaurant Ordering Website: Legal Requirements Every Online Food Business Must Follow (Complete Guide)

Why Legal Compliance Matters for Online Restaurant Ordering Systems Running a restaurant online isn’t just about beautiful food photography and a smooth checkout flow. The moment you accept orders through a website, you step into a legal landscape that’s significantly more complex than what a brick-and-mortar-only restaurant faces. You’re simultaneously a food service provider, an […]
April 6, 2026