Support » Plugin: Plugins » [Plugin: Plugins] Using colorbox in wordpress plugin

  • I have been using this code for writing a wordpress plugin. This plugin contains a colorbox. But this is not working. I can install plugin and can activate it successfully, but color box is not working. my code is


    Plugin Name: abc
    Plugin URI:
    Description: abc
    Author: abc
    Version: 1.0
    Author URI:

    wp_enqueue_style(‘colorbox.css’, ‘\wordpress\wp-content\plugins\calc_plugin\colorbox.css’);

    wp_enqueue_script(‘colorbox.js’, ‘\wordpress\wp-content\plugins\calc_plugin\colorbox.js’, array(‘jquery’));

    function calc_form_markup() {
    $markup = <<<EOT

    $(“.inline”).colorbox({inline:true, width:”600″, height:”450″});

    <div style=’display:none’>

    <div id=’inline_content1′ style=’padding:10px; background:#fff;’>
    <p>This is inline content 1</p>
    <image src = “×768.jpg” width = “175” height = ” 150″>


    <p>Inline HTML</p>


    return $markup;


    add_shortcode(‘calc_form’, ‘calc_form_markup’);


  • The topic ‘[Plugin: Plugins] Using colorbox in wordpress plugin’ is closed to new replies.