Hey! Having some trouble with the native recharge ...
# replo-help
g
Hey! Having some trouble with the native recharge integration in Replo. As far as I can tell I've followed all requirements (including product having live recharge set up) for the widget to render but nothing shows up. Any ideas on how to solve this issue?
p
Hi! This is Shahar from the Replo Team. Can you share the Editor page you are working on? You can copy the editor page' link from the browser address bar and paste it here.
p
Ok thanks that's helpful! I'll take a look and get back to you with how best to solve for this.
g
Amazing thank you. Appreciate the help!
p
So I checked and it looks like the Recharge widget is set to ​`display:none `​and type is set to be ​`Hidden`​ on your page. This means that the configuration of the widget is set to be hidden from the Recharge app itself. Could you perhaps check this from the Recharge app? You can also reach out to Recharge support to assist you in enabling that option for you to show the widget on your store pages.
g
Ah that will be why. Thank you for the assist will sort that out from the Recharge end then! Cheers:)
p
I'll be able to sort that problem out now thanks for that. I know I'm going to hit another issue though of needing to customise the widget beyond Recharges native abilities and I've been having some issues with targeting replo sections using custom liquid & CSS. Is there a more reliable way of doing this than simply publishing the page and using inspector to find the class string that replo has assigned to the div/item to then go back and target with a custom code block?
If you are customising the Recharge widget specifically, you can add the custom CSS code to the Config tab of the widget. More details here: https://support.replo.app/articles/1713035642-recharge
Perfect yep, will be doing that but is the only way to find the class names to be targeting within that block by using the inspector on a previewed/published page? Or am I missing a trick that would make this very simple?
The data attribute option allows you to personalize your components and style them just the way you want. Here's how you can do it: ​*Accessing Custom IDs:*​ Go to the container you want to customize. Find the "Config" tab for that container. ​*Data Attributes:*​ Look for the "Data Attributes" section. Here, you'll see two fields: "Data" and "Key." In the "Data" field, enter a custom name, for example, ​`custom­_color`​. In the "Key" field, assign a value, for instance, ​`bg`​. ​*Using Custom IDs in CSS:*​ Now, you can use these custom IDs in your CSS code. Here's an example CSS code snippet:
Copy code
<style>
[data-custom­_color="bg"]{
    background-color: #FFF;
    padding: 25px;
}
</style>
This code sets the background color to white (​`#FFF`​) and adds padding of 25 pixels to any container with the custom ID ​`bg`​. More details here: https://support.replo.app/articles/1799213363-custom-development-with-replo
Thank you, will dig into that see what I can do