You are here:  » Center search box


Center search box

Submitted by wesse249 on Sat, 2015-07-04 09:23 in

Hello is it possible to center the searchbox and shop, category and brand link on the searchpage and productpage? Just like the homepage..

Greetings Jan Roel

Submitted by support on Sat, 2015-07-04 09:26

Hello Jan,

Sure - in html/searchform.php look for the following code at line 5:

<div class='medium-6 <?php print (isset($searchform["centered"])?"medium-centered":""); ?> columns'>

...and REPLACE with just:

<div class='medium-6 medium-centered columns'>

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Sat, 2015-07-04 10:19

Thanks and on the category page what do i need to change then?

Gr JR

Submitted by support on Sat, 2015-07-04 10:50

Hello JR,

The modification should apply to all pages but if that's not the case on your site if you could post the contents of your html/searchform.php (i'll remove before publishing your reply) I'll check it out for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Sat, 2015-07-04 11:04

Thanks i had to refresh the page.

Submitted by HJW on Thu, 2015-07-16 12:25

Hi David,

On the 15/09A Beta version, what code do I change to achieve this?

Many thanks,
Hayden

Submitted by support on Thu, 2015-07-16 13:08

Hello Hayden,

The 15/09A version of html/searchform.php contains a branding area to the left but this can be easily removed and the form centered. Look for the following code beginning at line 3:

  <div class='small-12 medium-6 columns'>
  &nbsp;
  </div>

...and DELETE that section. Finally, look for the following code at the original line 9:

  <div class='small-12 medium-6 columns'>

...and REPLACE with:

  <div class='small-12 medium-6 medium-centered columns'>

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by HJW on Thu, 2015-07-16 22:00

Excellent, thanks.

Hayden.