Where would I view code from a 3rd party app?

certcoinconsult
New Member
3 0 0

I ran a coverage on my website, and there is an app called "yotpo" that I installed for reviews. Most of the CSS and Javascript is unused / not critical. So, I'd like to try defer / preload what I can to make my site a bit faster. However, I've been searching through my files, and can't seem to find where this code would be. I looked through theme. scss.liquid and theme.js.liquid but didn't see anything. Any help would be appreciated, thank you. 

0 Likes
Olivia
Shopify Staff
Shopify Staff
624 63 118

Hey, @certcoinconsult!

Welcome to Shopify Community. My name is Olivia and I work here.

I appreciate your question and I'd be glad to help guide you in the right direction. I wrote a similar forum post on helping you find issues in your theme, and narrowing them down to an app here. A little more than halfway down the page I mention:

If you suspect an app is causing the issue, you can uninstall the app by following the uninstall instruction from the app to ensure you are properly removing it. Oftentimes, removing an app from your Admin (Admin >Apps > Delete app) is not enough, as apps can leave trails of codes behind in the theme code. If you are having issues with uninstalling an app, we recommend reaching out to the app developers directly for assistance.

I highly recommend connecting with the app devs for the most accurate advice around where their app injects code/scripts, but I would suspect to find it in your liquid product templates in addition to your theme liquid. A cool hack you can use is a free online tool such as Diffchecker to compare a modified file against an original file. This will show you all of the code changes that have been made and further help you narrow down where the code lives.

To make things a bit easier for you, I pulled up the email address for the Yotpo app review team here: shopify_support@yotpo.com.

If you have any further questions, don't hesitate to connect with me.

Warm regards,

Olivia | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes

@certcoinconsult 

1. Download this Google Chrome Extension: (you need to use Google Chrome).
2. In your Shopify Admin, go to Online Store > Themes > Edit Code
3. In the new box that appears with the extension (top right corner) search for whatever code that you're looking for, like yotpo on this case. It will show you all the occurrences (if there any).

Let me know how it goes.

Kind regards,
Diego

◦ Product page slider & thumbnails with swiping for free themes: Minimal | Debut | Brooklyn | Supply
◦ Replace apps with simple copy/paste code snippets. Examples clicking here.