Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have rewritten the function like this. Still the same problem. Seems that WP itself removes inline style tags…

    protected function render_style_block() {
    // Calculate the width (in %) of each image
    $used_margin = $this->display_options [‘columns’] * 2;
    $width = floor ( (100 – $used_margin) / $this->display_options [‘columns’] );
    $output = ‘<style type=\”text/css\”>#{‘;
    $output .= $this->album_id;
    $output .= ‘}.epa-image{width:{‘;
    $output .= $width;
    $output .= ‘%;}</style>’;
    return $ouput;
    }

    Same problem here. render_style_block seems to be the problem indeed. In the page source the <style> and </style> tags are not rendered. I cannot figure out what goes wrong in the render_style_block function….

Viewing 2 replies - 1 through 2 (of 2 total)