Visual Composer Backend editor custom made element

This is my first time making custom WordPress Visual Composer element. So far everything works ok except one thing:

When added to backend editor element doesn’t look good (see pic):

Read More

enter image description here

User has to enter 3 parameters: Title, Add Image, Link

As seen in picture element shows title image id and weird link.

My question is: How can I customize what is rendered in backend editor?

Related posts

1 comment

  1. Found solution:

    Farray(
    "type" => "attach_image",
    "holder" => "img", <!-- set in what tag to display image
    "class" => "naujaImg", <!-- set css class
    "heading" => __("Nuotrauka", 'element'),
    "param_name"=> "image",
    "value" => "",
    "description" => __("Upload Image", 'element')
    )

Comments are closed.