Page 1 of 1

Adjusting Layout Question

Posted: 08 Jul 2009, 20:30
by Azounstone
Hi,

Great product! I would like to adjust the amount of white space shown on each page and would be grateful if you can advise how I do this? The image below shows the area between the arrows that I wish to adjust:

Image

Many thanks for your assistance with this.

Andy

Re: Adjusting Layout Question

Posted: 08 Jul 2009, 20:32
by caro84g
Hi,

I think you could change this with a template override.
Copy the file components/com_phocagallery/views/category/tmpl/default.php to templates/yourtemplate/html/com_phocagallery/category/default.php

And change it there.

Regards, Carolien

Re: Adjusting Layout Question

Posted: 08 Jul 2009, 20:54
by Azounstone
Many thanks for such a quick response :)

I have copied the file over as you suggested but am unsure what it is that I am meant to be changing in order to reduce the white space? Our site is also giving an error now when trying to view the gallery:

Warning: Division by zero in /home/az2ocom/public_html/site/templates/yoo_blueprint/html/com_phocagallery/category/default.php on line 35

Regards

Andy

Re: Adjusting Layout Question

Posted: 09 Jul 2009, 08:31
by caro84g
Hi,

to remove the error, could you try to rename default.php to default1.php, this way the override doesn't work

I don't know exactly what lines you have to change to remove the white space. You have to try to read the PHP and find out what defines the white spaces (probably some <br/> or <tr> ). This requires some knowledge of HTML / php (more HTML, 'cause you need to be looking at the output).

Regards, Carolien

Re: Adjusting Layout Question

Posted: 09 Jul 2009, 13:32
by Azounstone
I have renamed the file as suggested and this has indeed fixed the error message.

With regards to removing some of the whitespace I have looked through the file but must admit I am not sure what to remove to adjust that area.

If anyone reading this thread is able to tell me exactly what I need to change I would be extremely grateful.

Thanks

Andy