zee28 Posted August 12, 2013 Posted August 12, 2013 hi all, i changed some stuff around the search block but i kind of messed it up. what i want is like something in the attached file Share this post Link to post Share on other sites More sharing options...
vekia Posted August 13, 2013 Posted August 13, 2013 it's hard to say what's going on without additional informations: why you think that it is messed? what you exactly changed? how it looks now? any url? Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 13, 2013 Posted August 13, 2013 url : www.gadgetpit.co.uk i want the search bar to be central and have a book like the attached picture. Share this post Link to post Share on other sites More sharing options...
vekia Posted August 13, 2013 Posted August 13, 2013 for the first, create image with magnifying glass , and upload it somewhere to your ftp. after that - share the url. i will prepare some modifications and give you proper code Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 13, 2013 Posted August 13, 2013 thanks vekia, i know how to change the search button, it is just how to lift it up into the middle in line with the logo and changing the background colour Share this post Link to post Share on other sites More sharing options...
vekia Posted August 13, 2013 Posted August 13, 2013 it's hard to say, especially because there is still old version: Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 13, 2013 Posted August 13, 2013 ok, here is the search button Share this post Link to post Share on other sites More sharing options...
vekia Posted August 13, 2013 Posted August 13, 2013 okay, so how you can use this big image as a background for search button? you need to decrease the size of it Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 13, 2013 Posted August 13, 2013 ok 1 second.... Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 13, 2013 Posted August 13, 2013 here u go.. Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Posted August 13, 2013 ok i solve this issue on personal messge Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 hey vekia, i need help removing the 'search' on the button, Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 can you show me the block search .tpl file? Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Block search module --> <div id="search_block_left" class="block exclusive"> <h4 class="title_block">{l s='Search' mod='blocksearch'}</h4> <form method="get" action="{$link->getPageLink('search', true)}" id="searchbox"> <p class="block_content"> <label for="search_query_block">{l s='Enter a product name or description.' mod='blocksearch'}</label> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" type="text" id="search_query_block" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" id="search_button" class="button_mini" value="{l s='Go!' mod='blocksearch'}" /> </p> </form> </div> {include file="$self/blocksearch-instantsearch.tpl"} <!-- /Block search module --> Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 no this blocksearch-top.tpl Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 <input type="submit" id="search_button" class="button_mini" value="{l s='Go!' mod='blocksearch'}" /> remove the value="{l s='Go!' mod='blocksearch'}" i suppose that it looks the same in the file mentioned by jiten. just remove the value="" param. Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 yeah i removed it but it still remains the same, me and jiten have been trying for a while to remove it... Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 no vekai the search which appears on top is blocksearch-top.tpl file the value is "search" i already messaged him the entire .tpl file after removing value search Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 you removed it from the correct file? take a look into the /themes/yourtheme/modules/ directory. Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 it is not related with themes modules folder.. it in modules directory..i removed this many times.. what iam thinking is had force compile enable that might be the issue that's y changes are not occurring Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Block search module --> <div id="search_block_left" class="block exclusive"> <h4 class="title_block">{l s='Search' mod='blocksearch'}</h4> <form method="get" action="{$link->getPageLink('search', true)}" id="searchbox"> <p class="block_content"> <label for="search_query_block">{l s='Enter a product name or description.' mod='blocksearch'}</label> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" type="text" id="search_query_block" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" id="search_button" class="button_mini" /> </p> </form> </div> {include file="$self/blocksearch-instantsearch.tpl"} <!-- /Block search module --> Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 it's wrong file. this is the part of the code from website: "search_query_top" and code that you pasted above is a part of the blocksearch.tpl and we need to check the blocksearch-top.tpl Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 yeah its in modules/blocksearch/blocksearch-top.tpl he need to replace this with this..even he did not working i doubt its force compile issue {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.or...ses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- block seach mobile --> {if isset($hook_mobile)} <div class="input_search" data-role="fieldcontain"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox"> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" type="search" id="search_query_top" name="search_query" placeholder="{l s='Search' mod='blocksearch'}" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> </form> </div> {else} <!-- Block search module TOP --> <div id="search_block_top"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox"> <p> <label for="search_query_top"><!-- image on background --></label> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" placeholder="search entire store" type="text" id="search_query_top" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" name="submit_search" value="{l s='' mod='blocksearch'}" class="button" /> </p> </form> </div> {include file="$self/blocksearch-instantsearch.tpl"} {/if} <!-- /Block search module TOP --> Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 <input type="submit" name="submit_search" value="{l s='' mod='blocksearch'}" class="button" /> okay so you removed the string from s='' param and if you remove whole value param? still the same? Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 vekia, i tried everything it still stays the same, do u mind changing the code around and sending me the entire code pls Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 he need to replace this with this..even he did not working i doubt its force compile issue {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.or...ses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- block seach mobile --> {if isset($hook_mobile)} <div class="input_search" data-role="fieldcontain"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox"> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" type="search" id="search_query_top" name="search_query" placeholder="{l s='Search' mod='blocksearch'}" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> </form> </div> {else} <!-- Block search module TOP --> <div id="search_block_top"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox"> <p> <label for="search_query_top"><!-- image on background --></label> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" placeholder="search entire store" type="text" id="search_query_top" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" name="submit_search" class="button" /> </p> </form> </div> {include file="$self/blocksearch-instantsearch.tpl"} {/if} <!-- /Block search module TOP --> turn force compile on and clear shop cache after changes. + make sure that theme doesnt override this file Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 tried that again didnt work... This search bar is very stubborn lol Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 and if you remove whole contents of the blocksearch-top.tpl file, search field disappears? Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 nope remains the same Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 ohh dear, so it looks like: cache problem (website displays cached version) force compilation problem (the same as above) Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 (edited) u can do this advance parameter>performance>keep html as original> but make sure that blocksearch-top.tpl has conent that i sent u. Edited August 14, 2013 by Jiten rash (see edit history) Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 i turned off cache and it worked! Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 yeah, finally! Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 hmmmmmmmmmmmmmm Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 hhahaha thanks guys!! can i increase the size of the font? Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 but ur site opens Damn slow now...turn on cache again Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 #search_block_top #search_query_top {font-size:16px;} Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 when i turn it on the search bar goes back to what it was before Share this post Link to post Share on other sites More sharing options...
vekia Posted August 14, 2013 Posted August 14, 2013 try to clear directories: (remove all files + subdirectories) from : cache/smarty/ cache/compile/ Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 vekia u have done it again!!!!!! Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 nicelook..try some google fonts..site will look more good Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 good idea, when i find a font where do i put it.. Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans add at header.tpl <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> add open sans look owsome add at body on global.css font-family: 'Open Sans', sans-serif; Share this post Link to post Share on other sites More sharing options...
zee28 Posted August 14, 2013 Posted August 14, 2013 ok i did that. do i do something in back office to enable it? Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 (edited) not required ok on body global.css line 53 body { font: 11px/14px 'Open Sans', sans-serif; ask vekia to mark it as solved Edited August 14, 2013 by Jiten rash (see edit history) Share this post Link to post Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Posted August 14, 2013 then on modulesblock top menu /css/superfishmodified.csss .sf-menu a { display: block; margin-right: 2px; <---- remove Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now