• So im using the nextgen gallery for my shopping cart on my website, and then all of a sudden html such as p and br starts showing up and it throwing everything out of place

    i read in another thread that a guy used

    <?php echo html_entity_decode($image->description) ?>

    and that sorted his problem, my question is, where do i need to put this text to fix my problem?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter fangedfreak

    (@fangedfreak)

    anyone? ??

    Thread Starter fangedfreak

    (@fangedfreak)

    not to worry, i changed the html in buy_default.php and it works now

    Hi Fanged,

    I (think) I am encountering a similar issue… I want to use NextGen Gallery as my products catalogue. Each image in the gallery will have a lengthy description including <h2> and

      and <p> tags.

    It seems you found a solution to display the html formatted description on your site by adding the code
    <?php echo html_entity_decode($image->description) ?>
    but I am unclear where to add the code.

    Any help you can offer is much appreciated, thanks.

    Oops, sorry, I messed up the code on my post. It should read:

    Each image in the gallery will have a lengthy description including <h2>, <ul>, and <p> tags …

    wait… how did you resolve this? help!

    For those wondering, the <?php echo html_entity_decode($image->description) ?> belongs in your NextGEN template file. Simply wrap html_entity_decode() around the variable you’re echoing that contains the HTML.

    Thanks to whoever came up with this solution!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: NextGEN Gallery] HTML shows up in description box’ is closed to new replies.