run(); } run_ascend_marketing(); add_action( 'admin_menu', 'wpam_add_admin_menu' ); add_action( 'admin_init', 'wpam_settings_init' ); function wpam_add_admin_menu( ) { add_menu_page( 'Ascend Marketing', 'Ascend Marketing', 'manage_options', 'ascend_marketing', 'wpam_options_page' ); } function wpam_settings_init( ) { //Register plugin settings page register_setting( 'pluginPage', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage' ); register_setting( 'pluginPage1', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage1' ); register_setting( 'pluginPage2', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage2' ); register_setting( 'pluginPage3', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage3' ); //styling options setting section label add_settings_field( 'wpam_label1', __( 'Styling Options', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'section_styling' ) ); //styling options setting field - breakpoint setting add_settings_field( 'wpam_breakpoint', __( 'CTA Breakpoint:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'bp' ) ); //styling options setting field - background color add_settings_field( 'wpam_bg_color', __( 'CTA Background Color:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'bg' ) ); //styling options setting field - button text color add_settings_field( 'wpam_text_color', __( 'CTA Text Color:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'tc' ) ); //styling options setting field - Button options label add_settings_field( 'wpam_label2', __( 'Button Options', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'section_buttons' ) ); //styling options setting field - button 1 label add_settings_field( 'wpam_b1_label', __( 'Button #1 Label:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1l' ) ); //styling options setting field - button 1 link add_settings_field( 'wpam_b1_link', __( 'Button #1 Link:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1p' ) ); //styling options setting field - button 1 icon add_settings_field( 'wpam_b1_icon', __( 'Button #1 Icon:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1i' ) ); //styling options setting field - button 2 label add_settings_field( 'wpam_b2_label', __( 'Button #2 Label:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2l' ) ); //styling options setting field - button 2 link add_settings_field( 'wpam_b2_link', __( 'Button #2 Link:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2p' ) ); //styling options setting field - button 2 icon add_settings_field( 'wpam_b2_icon', __( 'Button #2 Icon:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2i' ) ); //Enable font awesome support add_settings_field( 'wpam_enable_icon', __( 'Enable Font-Awesome:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage2', 'wpam_pluginPage_section', array ( 'context' => 'fa' ) ); //Header code add_settings_field( 'wpam_textarea_field_0', __( 'Header code', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage3', 'wpam_pluginPage_section', array ( 'context' => 'section_fb_px' ) ); } function wpam_cta_fields_render( $args ) { $options = get_option( 'wpam_settings' ); ?> ' /> ' /> ' /> ' /> ' /> ' /> | Example: phone, phone-square, envelope (Click to see all icons) ' /> ' /> ' /> | Example: phone, phone-square, envelope (Click to see all icons) /> | Check this only if the icons are not showing on the website.

Mobile Call-to-action buttons

This call-to-action will increase your conversion rates on mobile devices


CTA Design


CTA Button Settings


Font Awesome

Add the latest font-awesome library support to your theme.


Additional header code

Insert any code that needs to be added into the header within the 'head' tag. This can be your Google Analytics code, Facebook Pixel, Font libraries, jQuery libraries, etc.

Javascript and CSS loaded here is render-blocking by default.