• Resolved TyB

    (@tyb)


    Great plugin. I was wondering if there is a way to define a custom width of the colorbox? Currently the widths are hard-coded with absolute positioning but I would like to make it (for example) 75% of the page width rather than a fixed px width. Is this possible?

    https://wordpress.org/plugins/wp-colorbox/

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

    (@naa986)

    Hi, What type of medial file are you trying to pop up?

    Thread Starter TyB

    (@tyb)

    I am just using the inline-content type and using my own HTML.

    Plugin Author Noor Alam

    (@naa986)

    Open the wp-colorbox.js file and search for the following piece of code:

    $(".wp-colorbox-inline").colorbox({inline:true, width:"90%", maxWidth:640});

    Once you find it replace with this:

    $(".wp-colorbox-inline").colorbox({inline:true, width:"75%"});

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Colorbox Width’ is closed to new replies.