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: Add Banner on the home page header  (Read 4030 times)

0 Members and 1 Guest are viewing this topic.

Illegal_Operation

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Add Banner on the home page header
« on: March 01, 2010, 01:37:23 pm »

Hi, i would like to add my own banner in the middle of the home page of the header.

How do i go about doing it? I am using hardwired theme and my website is as follows: http://www.asiadollies.com

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add Banner on the home page header
« Reply #1 on: March 01, 2010, 03:43:08 pm »

Edit themes/yourtheme/template.html with a plain text editor and add your custom HTML as you see fit if you want to add it add the very top. If you want to replace the existing embedded logo image, edit themes/yourtheme/style.css, find
Code: [Select]
.left-banner{
    background-image:url(images/left-banner.gif);
and edit accordingly, but keep in mind that your logo image then needs to fullfill certain requirements.
If you decide for the first option (editing the HTML markup), here's how: as you have failed to post a deep link to the banner image here's a generic example that will integrate the coppermine logo (http://www.asiadollies.com/images/coppermine_logo.png):
find
Code: [Select]
{CUSTOM_HEADER}and add after that (into a new line of it's own) something like
Code: [Select]
<img src="images/coppermine_logo.png" border="0" width="300" height="75" alt="" />. To make it blend nicely into your theme, wrap it into a table or div container construct that is using the same background classes that the rest of the page is using. It's beyond the scope of this board to teach you the HTML/CSS basics to accomplish that. Before doing all those edits you should read http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename first and do as sugegsted there, i.e. create a copy of the hardwired theme, rename that and edit accordingly. If you don't have the skills to do that, use the theme attached.
Logged

Illegal_Operation

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Add Banner on the home page header
« Reply #2 on: March 01, 2010, 04:14:11 pm »

I tried based on your below mentioned to add in the custom header (where 3A.gif is my banner)

<img src="images/3A.gif" border="0" height="62" alt="" />

but the height of my image is 70 but the left-banner.gif height is 62... so how do i get it fixed? so that it had the same height?

this is my site www.asiadollies.com
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add Banner on the home page header
« Reply #3 on: March 01, 2010, 06:10:09 pm »

Sorry, can't teach you HTML/CSS basics - that's beyond the scope of this board. Increase the width of one or decrease the width of the other; there's no "apply magic" button in any application that I'm aware of.

You failed to provide the link to your image as suggested, that's why I won't look into this any further.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.