Custom Created Sections are locked on page builder

Hosam Abdeltawab asked on November 3, 2020 19:55

I have created a new custom section called "SingleColumnSection" When I go on the Kentico UI's page builder to add it, it gets added but the blue plus sign in the middle is locked. Meaning, I can't click on the plus sign to add a widget.

Here is the code for the section:

View

@using Kentico.PageBuilder.Web.Mvc
@using Kentico.Web.Mvc

    <section class="section section--padded">
        <div class="section-inner">
            @Html.Kentico().WidgetZone()
        </div>
    </section> 

Here is the controller:

using AE.Web.Gwic.Controllers.Sections;
using Kentico.PageBuilder.Web.Mvc;
using System.Web.Mvc;

[assembly: RegisterSection("GWIC.SingleColumnSection", typeof(SingleColumnSectionController), "Single Column", Description = "1 Column with Padding", IconClass = " icon-square")]

namespace AE.Web.Gwic.Controllers.Sections
{
    public class SingleColumnSectionController : SectionController
    {
        // GET: Single
        public ActionResult Index()
        {
            return PartialView("Sections/_SingleColumnSection");
        }
    }
}

How can I unlock the section to be able to add widgets in it?

Recent Answers


Dmitry Bastron answered on November 4, 2020 10:44

Hi Hosam,

One of the reasons could be you CSS for this section. Check this in the dev console, there could be something transparent that is displayed above the plus button and prevents it from clicking.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.