I switched back to the default icon, and it works fine. Thanks Barbra!
I switched back to the default icon, and it works fine. Thanks Barbra!
So now i need to add an icon image that I already is saved in TIggzi. The only thing i change is the url which should point to the file i saved in Tiggzi. It didn't work. Can you tell me what i did wrong with this code?:
background: url(Tiggzi.getImagePath('social_google.png'));
Found this in another post
$('div[dsid="mobilecontainer1"]').css('background-image', 'url("'+Tiggzi.getImagePath('image.jpg')+'")') ;
OK. So i updated it to this:
background: url("'+Tiggzi.getImagePath('social_google.png')+'");
It shows a shadow where the icon should be, but still no image from the file. It works fine if i type in an external url, but i need to use the file in Tiggzi.
Check in the generated source that the correct URL was set.
Try if this works:
background: url(Tiggzi.getImagePath('social_google.png'));
That was what i started with, it doesn't work. How can i check the generated source code?
Hello! Please try to run next custom JS on screen Load:
$('a[dsid="mobilenavbaritem1"]').css('background-image', 'url("'+Tiggzi.getImagePath('image.png')+'")') ;
When i try that, nothing happens. With the other code, the star icon was removed, and there was a space for a new icon. Let me do some debugging with the other code and see what i get.
So, Tiggzi.getImagePath('social_google.png') returns this:
http://project.tiggzi.com/views/8d545...
The URL gets the correct image. So the problem is with the url function, with getting the url. Not sure why it isn't working
background: url("'+Tiggzi.getImagePath('social_google.png')+'");
So, i got it working by using the direct tiggzi URL:
background: url("http://project.tiggzi.com/views/8d545...");
Looks like a good solution.