Skip to main content

Developer

Child theme snippets and the hooks, filters and template overrides Salient exposes to developers

Hooks & FiltersEvery action and filter Salient fires, with the callbacks already attached, so a child theme can add or remove output without editing template filesRead →Add a New WPBakery ElementRegister a custom WPBakery element with vc_map on the vc_before_init hook from a child theme, then add the template file that renders its shortcodeRead →Override Element TemplatesChange a Salient page builder element's markup from a child theme: copy its template out of salient-core into a vc_templates folderRead →Add New Theme ColorsAdd your own colors with the nectar_additional_theme_colors filter in a child theme, so they appear as theme color choices in page builder elementsRead →Metaboxes for Custom Post TypesBring the Salient page and header metaboxes to a post type registered by a plugin or child themeRead →Modify Image SizesStop Salient generating image sizes your site never uses, or change their dimensions, from a child theme with remove_image_size and add_image_sizeRead →Disable AJAX SaveSwitch the options panel back to a normal form submit, for servers that block the AJAX saveRead →Enable Native WPBakery ElementsWhy vc_btn, vc_message and vc_cta are missing from WPBakery Page Builder on a Salient site, and the child theme filter that registers them againRead →Disable CSS/JS MinificationLoad the src files instead of the minified build ones, so overrides in a child theme are debuggableRead →Remove Salient StudioHide the template library from the page builder with a filter. The Custom Branding plugin has a toggle for the same thingRead →