• Resolved shaneo92

    (@shaneo92)


    Hi,

    I have installed the plugin and all seemed to be working when I had dummy text in each popup (there are 5 in a row) but I just changed text in the first popup to what the client provided and added an image then all of the 5 boxes end up with the same content as the first.

    The code for two of the popups is

    [wp_colorbox_media url=”#inline_content” type=”inline” hyperlink=”https://centerdental.wpengine.com/wp-content/uploads/wendie.png”%5D
    <div style=”display: none;”>
    <div id=”inline_content” style=”padding: 10px; background: #fff;”>

    <img class=”alignright size-thumbnail wp-image-39″ src=”https://centerdental.wpengine.com/wp-content/uploads/wendie-150×150.png&#8221; alt=”wendie” width=”150″ height=”150″ />Lorem ipsum dolor sit amet, penatibus elementum, dapibus nec nec, pede mi. Suspendisse hymenaeos, sed in ante. Fringilla morbi, urna eget, arcu lectus molestie. Eleifend nonummy ultricies, est per porttitor. Orci quaerat.

    Turpis eu diam, rhoncus habitant. Turpis suscipit sit, vitae ut, nunc venenatis maecenas. Turpis pellentesque dignissim, odio sed. Gravida vitae magnis. Tristique aliquam est. Natoque eu facilisis, consequat in.

    Cras scelerisque. A faucibus cras, vel lorem. Blandit integer porta. Pulvinar quis aliquam, libero feugiat sed, eros sagittis nunc. Sociis mauris, aptent accumsan.

    Imperdiet neque, lacinia ornare felis. Justo sagittis, per tincidunt vulputate, eum vitae sollicitudin. Amet tristique in. Sit pellentesque vulputate, et felis et. Dolor accumsan.

    </div>
    </div>

    and second one but still shows the above content:

    [wp_colorbox_media url=”#inline_content” type=”inline” hyperlink=”https://centerdental.wpengine.com/wp-content/uploads/megan.png”%5D
    <div style=”display: none;”>
    <div id=”inline_content” style=”padding: 10px; background: #fff;”>

    test text

    </div>
    </div>

    The site is in dev mode so cant provide a link but I am wondering if I am doing something wrong or if its not designed to be used in the way I am?

    Thanks for your help!

    https://www.ads-software.com/plugins/wp-colorbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, all of your shortcodes seem to be pointing to the same div “inline_content”. If you want to open different content for each shortcode, you need to create a separate div for it. For example:
    1.

    [wp_colorbox_media url="#inline_content" type="inline" hyperlink="https://centerdental.wpengine.com/wp-content/uploads/wendie.png"]
    <div style="display: none;">
    <div id="inline_content" style="padding: 10px; background: #fff;">
    //popup content for shortcode 1
    </div>
    </div>

    2.

    [wp_colorbox_media url="#inline_content2" type="inline" hyperlink="https://centerdental.wpengine.com/wp-content/uploads/megan.png"]
    <div style="display: none;">
    <div id="inline_content2" style="padding: 10px; background: #fff;">
    //popup content for shortcode 2
    </div>
    </div>

    Thread Starter shaneo92

    (@shaneo92)

    You are a legend, thanks heaps for such a quick response!

    I changed the div id but it still wasn’t working so I actually looked properly at your code and realized my url= was still the same as the first…

    Great plugin and awesome support!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate content’ is closed to new replies.