How to find theme asset url?
Answered
Posted Aug 19, 2021
How do I find the hc/theme_assets/ url for an asset? Some images on our help center aren't displaying and an inspection of the page says the images aren't found. I want to make sure I have the correct hc/theme_assets/ url in the CSS calling the images. Any idea on how I can find this?
2
15
15 comments
Ifra Saqlain
O O ! you got it.
0
Ifra Saqlain
Please remove the function algoliaSearch(); on script file, the error still exists.
-1
Jessica Chapin
Figured it out! There was a bit about Algolia further up on the js page that I missed. Thank you all for your help!
0
Ifra Saqlain
Okay, just wait, I'll check what's the causes.
0
Jessica Chapin
I tested removing the Algolia section from the js file and it still interferes with the script on the article_page.hbs
0
Ifra Saqlain
You have already commented the CDNs but the function exists so remove the function algoliaSearch(); on script file wherever it's calling.
0
Jessica Chapin
We want to remove Algolia search, which is why I commented out the script. What is a better way to remove Algolia search?
0
Ifra Saqlain
Hi,
You need to update the CSS for background social icon, have look at what I did:
1). You current code for linkedin icon -
After -
What I did =>
background-image => background
2). Output is
Current:
After:
And
You would get the solution of your second question when your console error would be solved.
What you did -
You commented the CDN of Algolia search on document_head.hbs file see the below screenshot for the same.
the condole error is -
What I did -
I added the CDNs of Algolia search on document_head.hbs file, see the below screenshot for the same:
and script code of Algolia search exists on script.js file, see the below screenshot for the same:
The CDNs is commented that's why your Algolia code throwing error (Not defined). You just need to add CDNs for Algolia code on document_head file and add the function code on script.js file as I did.
1). CDNs - Copy the CDN and paste it into document_head.hbs file.
2). Copy the below Algolia code and paste it into script.js file at the end of all code.
And then let me know if another issue arises.
Have a nice day :)
Thanks
1
Jessica Chapin
Ifra Saqlain It's https://help.nexmo.com/hc/en-us
The issue with the footer social media icons seems to have been having the wrong link for the images. I updated that in the CSS.
The second issue is that I commented out the script to run Algolia search so I could revert to native Zendesk search. That affected a script on the article page template which was put in place to render table styles, bullet point styling, and the article voting images. The script is supposed to run after the document is ready, and commenting out the Algolia script in the document head seems to prevent the document from being ready.
I'm trying to understand why those style elements are in a script on the article page instead of in the CSS.
0
Uzair
it's not working.
0
Sign in to leave a comment.