Adding Custom Image to Header - How do I centre? Adding Custom Image to Header - How do I centre?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Adding Custom Image to Header - How do I centre?

Started by crl, October 25, 2013, 12:09:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crl

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)?

phill104

Can we have a link please?

There are a number of ways to centre an image.
It is a mistake to think you can solve any major problems just with potatoes.


Αndré

Please extract the attached zip file and copy template.html to your theme folder (themes/curve).

crl

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.

Αndré

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.

crl


crl

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?

Αndré

Please search our board, as that has already been asked and answered.

crl

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..

Jeff Bailey

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.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford