Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 28th, 2015, 07:01 AM
brentwilliamz brentwilliamz is offline
 
Join Date: Dec 2014
Posts: 38
Default Order of inserted code in theme's header.php

Store ID: 46971
Website URL: Androids.net.au

As directed below, I've removed your code from Simple Search Widget module & pasted it into my Graphene's child theme header.php (so it doesn't get overwritten when parent theme is updated):

Code:
<script type="text/javascript">
<!--
/*
 * NOTE: This JS code would be much better off
 * existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>
Is there any particular placement of for your code in the header.php file, eg. start or end of file? Or is this never critical?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Store plugin effecting theme header johnlawson Problems 3 February 9th, 2012 02:25 PM


All times are GMT -5. The time now is 04:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.