Quark 404 page search website

Multipurpose WordPress Theme Forum Support
GK User
Wed Jan 27, 2016 1:44 pm
Good afternoon,
Is it possible that the 404 page searches on the website instead on Google?
Thanks a lot!
User avatar
Junior Boarder

Joshua M
Thu Jan 28, 2016 9:42 am
Hello,

Yes, it's possible please edit your Quark/404.php file and change this fragment:
Code: Select all
<?php
                         $lang = explode('-', get_bloginfo('language'));
                     $lang = $lang[0];
                      ?>

                  <script type="text/javascript">
                  var GOOG_FIXURL_LANG = '<?php echo $lang;?>';
                  var GOOG_FIXURL_SITE = '<?php echo site_url(); ?>';
                  </script>

                  <script type="text/javascript" src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>


to:
Code: Select all
<div id="gk-search">
                     <div>
                        <?php get_search_form(); ?>
                     </div>
                  </div>


It's recommended to use a Child Theme instead of editing theme core files.
User avatar
Moderator


cron