Forums

Insert FB Like button into Auto thickbox plugin (3 posts)

  1. Pharmameds
    Member
    Posted 1 year ago #

    Hello

    I would like to as how could I include Facebook Like button into Auto thickbox pop up picture view. I have to change code, but have no idea where.

  2. attosoft
    Member
    Posted 1 year ago #

    Open wp-includes/js/thickbox/thickbox.js, and modify the code at line 135. If you want to show Facebook button after caption, insert Facebook code before <div id='TB_secondLine'>. Or if you want to show Facebook button before close button, insert Facebook code after <div id='TB_closeWindow'>.

  3. Pharmameds
    Member
    Posted 10 months ago #

    Thank you for your response, but it did'nt work for me :( I'm sure that I'm doing something wrong. Here is the way I wrote the code:

    jQuery("#TB_window").append("<img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><fb:like href="#" layout="standard" show-faces="true" width="450" action="like" colorscheme="light" /><img src='" + tb_closeImage + "' /></div>");

    Could you please correct the exact mistake I made.
    Thank you in advance!!!

Topic Closed

This topic has been closed to new replies.

About this Topic