Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adding custom header to front page of gallery  (Read 4035 times)

0 Members and 1 Guest are viewing this topic.

PhilD_UK

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Adding custom header to front page of gallery
« on: May 23, 2014, 09:51:00 pm »

Can anyone tell me how to add a custom JPG header to the home page of my gallery?
I have changed the titile in the coppermine settings, but would like to use my own title image.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Adding custom header to front page of gallery
« Reply #1 on: May 24, 2014, 05:22:31 pm »

A link to your site will help so we can see what theme youy are using. Also, if you attach your image to your next post we can advise better on any code adjustments.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Adding custom header to front page of gallery
« Reply #2 on: May 26, 2014, 07:46:37 am »

Open template.html with notepad and use notepad find option Edit - Find to look for the image_name.jpg and replace with your_image_name.jpg and change even the path if you want it to put the image in a diffrent folder.Worpad is better because notepad sometimes shows the code with no order and is impossible to read and edit like this.

To find the image name right click in firefox on the image - click View Image or View Background Image.This way you will see the image name and even the path (the folder where the image is). OR you can look in your theme folders to find it and copy the image name.

If is not in template.html then look in all the theme files like theme.php or your_theme_style.css

If you find somthing like this <img src="themes/your_the_name/images/imagename.png" border="0" width="260" height="60" alt="" /> make sure to change even image_name.png in your_image_name.jpg and width and height with the width and height of your image.

If is in your_theme_style.ccs it will look like that background-image: url(images/image_name.png);

The image could be .png,.jpg,.jpeg or .gif. Make sure to change to .jpg.

« Last Edit: May 26, 2014, 08:06:11 am by allvip »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.