Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JimmyHowe/2a9b3c68b86f1133eedcd4916632094a to your computer and use it in GitHub Desktop.
Save JimmyHowe/2a9b3c68b86f1133eedcd4916632094a to your computer and use it in GitHub Desktop.
<?php
protected function _register_controls()
{
$this->start_controls_section('brand_colors', [
'label' => __('Colors', 'jhdc-branding-elementor-extension'),
'tab' => Controls_Manager::TAB_STYLE,
]);
$this->add_control('color', [
'label' => __('Color', 'jhdc-branding-elementor-extension'),
'type' => Controls_Manager::COLOR,
'default' => '#ababab',
'selectors' => [
'{{WRAPPER}} a' => 'color: {{VALUE}}',
],
]);
$this->add_group_control(Group_Control_Typography::get_type(), [
'name' => 'typography',
'selector' => '{{WRAPPER}} a',
]);
$this->end_controls_section();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment