Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Hello,

I would like to make a change in the header.

Making on the right of the logo 1or 2 images where you can click on.

can someone tell me where I can make this change?

Should I change it in header.php??

 

Thanks,

Have a nice day, :(

post-336856-0-97263800-1439388883_thumb.jpg

Link to comment
Share on other sites

I think I got it done.

I have the following file put into buttons.php.

 
 echo '<a href="' . tep_href_link('index.php') . '">' . HEADER_BUTTON_BOVEN . '</a>';
 

 

 

and I put the following file in cm_header_buttons.php

 

define('HEADER_BUTTON_BOVEN', '<img src="images/1store_logo.png" alt="button" /> ');

 

it works well, but I just want to know if this is the right way..... :-

Link to comment
Share on other sites

You should look to use the built in functions where you can. tep_href_link and tep_image. They are defined in html_output.php in the functions folder.

 

<?php echo '<a href="' . tep_href_link('index.php') . '">' . tep_image(DIR_WS_IMAGES . 'myimage.gif') . '</a>'; ?>

Link to comment
Share on other sites

Hello Ashley,

 

So I don't need to edit the file (cm_header_buttons.php)....

I can all do it in (buttons.php).

 

Now I have made it in button.php

What file do I have to edit if I want to make it in a new file.php in the header.

I hope you can help me out with this one.

 

friendly regards,

And already thank you for this one Ashley,

Link to comment
Share on other sites

ok. I figured out, I think.

 

I think I must copy the cm_buttons.php,  and give it a different file name.  

(cm_test.php) instead of (cm_buttons.php)

and then adjust the inside of that file.

 

btw. if it's good, I can also adapt it via the admin???

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...