Skip Navigation

[Resolved] Change Default Tag Name From Div to Header in Cell Registration

This thread is resolved. Here is a description of the problem and solution.

Problem

Let me know how to remove the HTML Tag option in Custom Layouts Cells

Solution

There is no option to do so

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by RyanM442 6 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#621519
Screen Shot 2018-03-02 at 12.32.34 PM.jpg

Hi Toolset Support,

I'm building some custom cells and its going well. One part of the process I'm getting stuck on is setting the default HTML tag to header.

within the registration of the cell (cell_name_cell_init()) I'm capable of loading up some additional classes to the primary container of the cell. I'm wondering if there is a way to set the HTML tag as well using a similar method to:

'cell-class' => 'primary-title-cell entry-header '

** If possible let me know how to remove the HTML Tag option. It'd be useful for certain cells that should never be changed.

Thanks in advance!:)

#621669

It doesn't seem to exist a public argument for that:
https://toolset.com/documentation/programmer-reference/layouts-cells-api/

I assume this would require a feature request.

I will feedback to you on Monday after consulting with the Toolset Layouts developer.

#621730

Thanks for the update. Excited to hear back Monday!

#622513

There is no public filter for this.

I filed a feature request, which will eventually be implemented according to votes of users requiring this, and other factors.

For now, this requires custom code, since the Layouts Plugin does not offer the public API for this specific part of the Cells.

You could eventually receive help from the Contractors:
https://toolset.com/contractors/

#622616
Screen Shot 2018-03-06 at 8.53.31 AM.jpg

Hi Beda,

Thanks for the update. I just wanted to make sure it wasn't a part of the API prior to coming up w/ a custom solution.

I'm one of the contractors so that takes a few keystrokes out of the process:)

Feel free to close this ticket.