Thanks for getting back to me.
On this page, the class name for the title is “DashboardModal__ProductTitle”, so if I want to add “contact us” after the title, I put in the js is
is that correct?
Yeah, that should do it.
Depending on on how you want that displayed, you may want to enter a space or something, because .append won't do it for you.
You may have already been there, but I'll still leave the link to the jQuery append documentation: http://api.jquery.com/append/
If it goes through, you should see the page change content immediately. Then you can copy/paste the code into your JS file and upload it to make it more permanent.
interesting thing is that it worked in js console, but it does not work on the server. Do you have some suggestions?
thanks for the tips.
When you open up the JS Console, do you see any errors? If you do, can you post them?
Does the JS override file have the document.ready function?
Should look like this:
More info on that here: https://learn.jquery.com/using-jquery-core/document-ready/
here is my example js
I do not see an error in console, and I still do not see the link. Only I run the js in console, the link will appear. Did I do something wrong? please help.
It could be that when your code is running (when the document first becomes ready) the popup element doesn't exist yet. I haven't looked at the code in that page, but that popup element (or its contents) may only get created when the user initiates the action. To test out this theory you could use the Chrome console to execute your code before opening the popup and then see if your custom text is there once you open it.
Sorry for the delay. 50581462 made a good point about seeing if the DOM elements actually exists after the page loads or if it gets created after the popup is triggered. Running the code before the popup appears is definitely the easiest way to tell. The second easiest way would be to dig through the element inspector for the code. You can do this in the 'Elements' tab and do ctrl+f and look for ".DashboardPanel__ProductTypeTitle" - if you include the dot in the beginning, it'll find the entire element, not just the text.
I don't think we have a popup like this anywhere on our instance (still trying to learn everything about our current instance of Canvas) so I don't exactly know where I'd go and check for you. I'll have to click around a bit.