![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() 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> ![]() |
#2
|
||||
|
||||
![]() Hi
It shouldn't matter at all just as long as it's placed somewhere between the <head> and </head> tags. Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Good, Eric, didn't think so. Have done as instructed, ta.
What about code pasted into a Store's Custom CSS – sometimes I've seen it specified "at very end of file"? PHP versus CSS: Are they 2 different kettles of fish in how they operate or are read & acted on? |
#4
|
||||
|
||||
![]() Code pasted into your Custom CSS should always be pasted at the bottom of the textarea where you paste it into unless otherwise noted.
PHP & CSS are completely different. More like PHP is the brains of the fish and CSS is the color and shape of the fish.
__________________
![]() ![]() ![]() ![]() |
#5
|
|||
|
|||
![]() Ahhhh, much clearer now. Ta.
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Store plugin effecting theme header | johnlawson | Problems | 3 | February 9th, 2012 02:25 PM |