Tagged: catch evolution, images, widget
- This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by Mahesh.
-
AuthorPosts
-
March 31, 2016 at 3:45 pm #88567ErnestoParticipant
Dear all,
I’m doing some tests with the theme Catch Evolution before switching to the PRO-Version. In order to test opportunities of this nice theme, I have built a little widget to display the current astrological period as a text, the corresponding “zodiacal stone” again as a text and the image of the zodiacal stone. If I open the home-page, this widget works very fine.
The strange thing happens if I select another page from navigation menù. In the widget appears the name of the astrological period (eg. “Waterman”), the right name of the stone (eg. “Lapislazzuli”), but the image of the stone will be not displayed.
If I come back to the home-page, the image will correctly displayed.I really don’t understand what’s happens. If someone has an idea what it could be, thank you very much in advance !!!
If you want take a look on the JS, following the link:
http://pastebin.com/8t1PGxgGLet me know please if you need more information about.
Many thanks
Regards, Ernesto
Environment:
Windows7 PRO
WordPress 4.4.2
XAMPP 3.2.2
Child theme: Catch Evolution Child
Editor: Dreamweaver 8March 31, 2016 at 4:50 pm #88578MaheshParticipant@serpico57: Please post in your site url. As per your explanation, and the code provided, the issue seems to be due to image path problem, you are using the image directly in the theme. I recommend you to upload all the image in the media and replace the path in your JS file with the image path in media.
Go to Dashboard=> Media, upload the image, after uploading click Edit on the right side, new tab will open with image detail and url(File URL). Replace the url in JS file with that image url(File URL) in this tab. Repeat this for all images.
Hope this helps.Regards,
MaheshMarch 31, 2016 at 6:53 pm #88580ErnestoParticipantWow Mahesh,
Problem solved !
You are right, the path was wrong. Now it works perfectly.Thank you very much
Greetings from Switzerland
Ernesto
April 1, 2016 at 9:40 am #88617MaheshParticipant@serpico57: That’s great. Thank you for your appreciation. Have a nice day!!
Regards,
Mahesh -
AuthorPosts
- The topic ‘Strange behavior running a JS in a widget into the side bar’ is closed to new replies.