Viewing 2 replies - 1 through 2 (of 2 total)
  • You can paste the code <?php do_action('wpcallback_button'); ?> into the “Text” widget, but before that, you need to enable PHP code inside that widget, which by default only allow text or HTML.
    In order to do that without the use of another plugin, just paste the following code in your theme’s functions.php file:

    add_filter('widget_text','execute_php',100);
    	function execute_php($html){
        	if(strpos($html,"<"."?php")!==false){
                    ob_start();
                    eval("?".">".$html);
            	$html=ob_get_contents();
            	ob_end_clean();
         	}
    	return $html;
    	}

    There you go!

    Hey Guys,

    Does anyone know how to adjust the color of the text input for the form fields?

    Right now the text typed into the form fields is almost the same color gray as the field box color making it very difficult to read.

    I’m not great with CSS and can’t find where to adjust this one component.

    My website is: https://www.planetgse.com

    Any help would be MOST appreciated.
    Thanks guys!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add as widget’ is closed to new replies.