forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: crl on October 25, 2013, 12:09:32 am

Title: Adding Custom Image to Header - How do I centre?
Post by: crl on October 25, 2013, 12:09:32 am
I am trying to put a custom image on the top header section (centred) using the "curve" theme.

The image is not centred but to the left, the menu buttons/icons are boxed up to the right. So how do I centre the image? and if possible place the menu buttons/icons underneath the image (centred and in one line)?
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: phill104 on October 25, 2013, 12:41:40 am
Can we have a link please?

There are a number of ways to centre an image.
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: crl on October 25, 2013, 01:08:53 am
sorry link is
http://cdhs.freepgs.com/gallery/index.php
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: Αndré on November 06, 2013, 01:37:54 pm
Please extract the attached zip file and copy template.html to your theme folder (themes/curve).
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: crl on November 07, 2013, 01:27:26 am
Thank you.

If I wanted to use a larger image size, do I have to edit the template.html or any other files? to prevent the image from stretching.
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: Αndré on November 07, 2013, 11:10:03 am
You just have to edit template.html. Actually you can also remove the width and height attributes. They're just needed to help the browser rendering the website while the image hasn't been loaded yet.
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: crl on November 08, 2013, 12:24:51 am
Thanks for your help. All working fine now.. :)
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: crl on November 08, 2013, 11:07:29 am
Sorry to be a pain.
But there is just one other slight problem, is there a way of reducing the gap below the header, shown with red arrows?
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: Αndré on November 08, 2013, 11:49:34 am
Please search our board, as that has already been asked and answered.
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: crl on November 13, 2013, 01:35:27 am
OK sorted the gap problem out.
Is there a way to centre the top menu (not to the left)?  I have done a search and the only thing I could find is to use the curve centred theme, which I want to avoid if possible because the rest of the header is now ok..
Title: Re: Adding Custom Image to Header - How do I centre?
Post by: Jeff Bailey on November 13, 2013, 01:52:00 am
As far as I recall it wasn't particularly easy to center it.
You have two good options:
Download the centered theme and apply your edits or
Download the centered theme and apply its menu edits to your theme.