ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

image popup colorbox not show

December 21, 2011 11:50am

Subscribe [3]
  • #1 / Dec 21, 2011 11:50am

    DymDym

    13 posts

    Hi,

    I am working on my first EE project and try to get an image showed up as popup.

    I added js file and a class to the image url but the image opened in a new window instead of the colorbox popup.

    In header:

    type="text/javascript" src="/assets/js/jquery.colorbox.js"

    In ccs (import in main.ccs):
    @import url(“colorbox.css”);

    In page channel:

    <a href="https://ellislab.com/asset/images/pronet-logo/pdbouwwestzaan.jpg" rel="colorbox" class="colorbox">https://ellislab.com/asset/images/pronet-logo/pdbouwwestzaan.jpg</a>

    Please can somebody tell me what I did wrong or forget?

    Site: http://www.jarda.nl (not finished yet)

  • #2 / Dec 21, 2011 11:54am

    Boyink!

    5011 posts

    The best way I’ve found to debug these things is to compare the HTML coming out of EE to the working static HTML examples you typically get with them.

    Usually it’s just a pathing issue.

  • #3 / Dec 21, 2011 12:57pm

    DymDym

    13 posts

    I got it. Now it works at least I get the popup.

    Thanks

  • #4 / Dec 22, 2011 2:04am

    John Henry Donovan

    12339 posts

    Thanks for the update. Feel free to start a new thread if you have any more questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases