Creating multiple inline html popups in one text box..
-
Hi I’m using this plugin to have a popup box which shows an image and description of different products in one paragraph, however it seem to only read the first image and description when you do it this way. My initial guess is that it is a naming convention…could anyone help me figure this out? can I change the “#inline_content” variable to like “#inline_content_2″ and have the shortcode still function?
EX: additional items include: item 1, item 2, item 3.
(each item is linked with an inline html pop up but it displays the item 1 information for item 2 and 3)
my code is as follows
[wp_colorbox_media url=”#inline_content” type=”inline” hyperlink=”item 1, “]
<div style=”display: none;”>
<div id=”inline_content” style=”padding: 10px; background: #fff;”>
<*img src=”wp-content/uploads/item-1.png” />
<p>item1 description…</p>
</div>
</div>
[wp_colorbox_media url=”#inline_content” type=”inline” hyperlink=”item 2, “]
<div style=”display: none;”>
<div id=”inline_content” style=”padding: 10px; background: #fff;”>
<*img src=”wp-content/uploads/item-2.png” />
<p>item 2 description…</p>
</div>
</div>
- The topic ‘Creating multiple inline html popups in one text box..’ is closed to new replies.