Adding Custom Google Search to header
-
<?php include (‘https://domain.com/wp-content/themes/themename/searchform.php’); ?>
<?php echo do_shortcode(‘[wp_google_searchbox]’); ?>Ive tried both these the top shows nothing the bottom prevents the page from even loading.
The only thing in searchform.php is the copy+paste of the “get-code” from the custom search defined at the appropriate link.
I’ve set the id in the settings page as well even though im not planning on using the widget, I placed the widget in the sidebar for giggles and it works fine there.
Not too sure what the issue is here.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding Custom Google Search to header’ is closed to new replies.