• Resolved diva247

    (@diva247)


    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>

    • This topic was modified 6 years, 2 months ago by diva247.
    • This topic was modified 6 years, 2 months ago by diva247.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter diva247

    (@diva247)

    added the asterisks to prevent it from trying to display a picture that didn’t exist. lol

    Thread Starter diva247

    (@diva247)

    okay yep it was a naming convention! I was able to change “#inline_content” variable to a different name and the short code still functioned properly. Hopefully this post helps someone else out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating multiple inline html popups in one text box..’ is closed to new replies.