Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Jeff Hester

    (@bigblueball)

    Nevermind. I found the solution (replacing the anchor tag and using single quotes).

    Would you please post a sample of your syntax?

    I’ve recently been trying to do the same thing. The syntax I use is for example:

    `[thkBC id=”205″ height=”600″ width=”600″ anchortext='<img src=”http://www.blah.blah&#8221; width=”162″ height=”154″‘ />

    You can put any HTML within the single quotes in the anchortext tag and it will render it as a link to the thickbox.

    Hope this helps…

    What am I doing wrong? I’ve tried doing the html img tag in single quotes within the anchor text area, and no matter what I tweak, the image won’t display. Instead, this text displays as the link:

    ThickBox Content Link

    I don’t know where that text is even coming from. Here is the code I’m using:

    ‘[thkBC id=”181″ anchortext=”‘<img src=”http://pramlaos.org/wp-content/uploads/img/studentproj1.jpg&#8221; alt=”” width=”160″ height=”120″ />'” title=”Animal Health” url=”http://pramlaos.org/wp-content/uploads/img/Laos_map_poor_sm.jpg&#8221; type=”iframe”]’

    Can someone please tell me what I’m doing wrong?

    I fixed it by going into the HTML and taking out the double quotes around the anchortext (<img />) content, so like this:

    [thkBC id="181" anchortext='<img src="http://pramlaos.org/wp-content/uploads/img/studentproj1.jpg" alt="" width="160" height="120" />' title="Animal Health" url="http://pramlaos.org/wp-content/uploads/img/Laos_map_poor_sm.jpg" type="iframe"]

    Plugin Author Max Chirkov

    (@maxchirkov)

    @jadenoel – yes, the quotes will get into a conflict by canceling each other out if they are the same. So, if for example parameter anchortext=” “ users double quotes, then you have to use single quotes within it, or vice versa – single quotes on the outside and double inside.

    xroox

    (@xroox)

    Thanks this helped me out. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: ThickBox Content] Using an image rather than text for the anchor?’ is closed to new replies.