Page 1 of 4

Contact Page Layout

Posted: Thu Jan 11, 2018 6:37 am
by Gobbo
Hi,

My Contact Us page layout is wrong.

The fields for name, email and enquiry are squeezed on to the left side.

Where is and what part of the CSS controls the contact page?

Re: Contact Page Layout

Posted: Thu Jan 11, 2018 7:24 am
by straightlight
No URL posted with inquiry.

Re: Contact Page Layout

Posted: Thu Jan 11, 2018 9:30 pm
by Gobbo
https://www.comicbookxs.com/index.php?r ... on/contact

It works okay on mobile, but not on PC.

Re: Contact Page Layout

Posted: Fri Jan 12, 2018 6:22 am
by straightlight
Custom theme involved. Switch back to the default theme and see if the issue can be replicated.

Re: Contact Page Layout

Posted: Fri Jan 12, 2018 6:18 pm
by Gobbo
I'm using the default theme.

Re: Contact Page Layout

Posted: Fri Jan 12, 2018 6:41 pm
by straightlight
This is the default theme: https://demo.opencart.com .

Re: Contact Page Layout

Posted: Fri Jan 12, 2018 7:50 pm
by DigitCart
This is the file:
catalog\view\theme\default\template\information\contact.tpl

Make a copy of your current file (as backup).
Upload above file from the OpenCart installation pack and replace with your current file.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 3:03 am
by Gobbo
Thanks, I did that from the original file and it's still not working :(

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 3:10 am
by straightlight
Clear out your OC cache from your system/storage folder (or your storage folder outside of your public_html folder) and browser cache and see if the problem persist. If so, at the top of the contact.tpl file, paste:

Code: Select all

<?php echo 'test123'; ?>
Save the file. Then, see on top of your contact page if you do notice the test123 .

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 4:18 am
by Gobbo
Done that but no 'Test 123' appeared

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 4:33 am
by straightlight
Is your storage outside your public_html folder as well or still inside?

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 4:40 am
by Gobbo
Inside

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 4:43 am
by straightlight
Another test you could do noticing the changes. In your catalog/controller/information/contact.php file, after the public function index() line,

add:

Code: Select all

echo 'test123';
Save the file and notice the test123 on top of the page.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 5:11 am
by Gobbo
Did that, but still it didn't show up.

I change the name of the contact file then site displayed the could not find file text.

I then replaced the contact file with one I downloaded.

But still no change to the contact page, its still squeezed on to the right side.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 5:13 am
by straightlight
Server cache issue. Contact your host.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 7:34 am
by Gobbo
It must be in the CSS, as the host said there is no problem with the server cache.

I say the CSS as the mobile version is uninfected.

Where in the CSS does it control the contacts page?

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 8:02 pm
by straightlight
CSS issues does not prevent PHP outputs. PHP takes priority over other file extensions, in this case. For this situation, no PHP output can be seen according to the last results.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 8:13 pm
by Gobbo
So how can this be fixed?

I don't want to reinstalled the site for the 4th time.

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 8:22 pm
by straightlight
The solution has already been posted here: viewtopic.php?f=190&t=201092#p710530

Re: Contact Page Layout

Posted: Sun Jan 14, 2018 8:37 pm
by Gobbo
Hi,

This is what my hosting service said 'We can confirm that server side cache is not active for your website comicbookxs.com and as I can see the issue does not have anything in common with the caching.'.

I've just download another browser, the contact page looks the same.