Issue #1965Opened April 13, 2019by vinayakprabhu0 reactions

Custom content type

Question

@artf Instead of using plugins js files, can we create our own content using html as I have done below. Is it a correct way to do it?

 {
        appendTo: '#blocks',
        blocks: [
          {
            id: 'text',
            label: 'List',
            attributes: {class: 'fa fa-list-alt'},
            content: '<div data-gjs-type="text" data-highlightable="1"><ul><li>List 1</li><li>List 2</li><li>List 3</li></ul></div>',
            activate: true,
            category: 'Standard UI Elements'
          },

Sorry for the formatting unable to format.. Thanks in advance.

Answers (3)

artfApril 13, 20190 reactions

Is it a correct way to do it?

yes...

vinayak99999April 15, 20190 reactions

Thank you for your reply @artf . I just have one more query I want to have an vertical carousel. So from the above code snippet where do I add say Jquery or script for delay or scroll effect

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.