WordPress.org

Forums

HTML Javascript Adder
[resolved] toolbar images not showing (4 posts)

  1. MacBlaue
    Member
    Posted 3 years ago #

    Hi
    Installed this plugin which works perfectly - except some images are hard coded in the php?
    For the images in the toolbar, lines 243, 270, 276.

    example line 270:

    <img src="http://localhost/wordpress/wp-content/plugins/html-javascript-adder/images/help-icon.png"

    should be:

    <img src="<?php echo HJA_URL . 'images/help-icon.png'; ?>"

    http://wordpress.org/extend/plugins/html-javascript-adder/

  2. StandOutSites
    Member
    Posted 3 years ago #

    i'm having the same problem. can you explain in more detail how to fix this?

  3. MacBlaue
    Member
    Posted 3 years ago #

    Locate the file html-javascript-adder.php which is in the plugins/html-javascript-adder directory.
    Replace all instances of
    src="http://localhost/'

    with

    src="<?php echo HJA_URL . '

    these should be on lines 243, 270, 276.

    This makes the browser look for the images on the server rather than your computer.

  4. vaakash
    Member
    Plugin Author

    Posted 3 years ago #

    @MacBlaue Thanks for the notification. After testing in the localhost, I forgot to change them back. In the version 3.6 this correction is made.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTML Javascript Adder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.