// Default container settings
$container_settings = [];
// Apply specific settings if the container is "hero_section"
if ($container_id === 'hero_section') {
$container_settings = [
// 'content_width' => 'full_width',
'min_height' => [
'size' => 75,
'unit' => 'vh',
],
// 'direction' => 'column - vertical',
// 'justify_content' => 'center',
// 'align_items' => 'center',
'background_background' => 'classic',
'background_position' => 'center center',
'background_repeat' => 'no-repeat',
'background_size' => 'cover',
'background_image' => [
'url' => isset($content['background_image']) ? $content['background_image'] : '',
],
];
}
return [
'id' => 'elementor-' . $container_id . '-' . uniqid(),
'elType' => 'container',
'settings' => $container_settings,
'elements' => $elements
];
Uising above to setup the elementor container layout using php code but not working
need solution to automate the elementor container setting using php code
New contributor
Creative Heads is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.