Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #88567
    Ernesto
    Participant

    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/8t1PGxgG

    Let 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 8

    #88578
    Mahesh
    Keymaster

    @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,
    Mahesh

    #88580
    Ernesto
    Participant

    Wow Mahesh,

    Problem solved !
    You are right, the path was wrong. Now it works perfectly.

    Thank you very much

    Greetings from Switzerland

    Ernesto

    #88617
    Mahesh
    Keymaster

    @serpico57: That’s great. Thank you for your appreciation. Have a nice day!!

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Strange behavior running a JS in a widget into the side bar’ is closed to new replies.