Adding additional HTML container elements (like <nav> ) to the Advanced row settings: HTML Element

I know there must be a hook to accomplish this. I’ve done my best to look through the published documentation but I just can’t find the right one. I would rather do this than define special ARIA roles each time to individual elements from my functions.php. Thanks!!

GPS

Welcome :slight_smile:

You need to use the fl_builder_node_container_element_options filter.

An example might be:

add_filter( 'fl_builder_node_container_element_options', function( $args ) {
	$args['nav'] = '&lt;nav&gt;';
	return $args;
});

Thanks! It worked like a charm. I saw that filter but wasn’t sure if it would actually create the element for me instead of just giving me an option in the settings that linked to nothing (if that makes sense).

GPS