Jump to content
Sign in to follow this  

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

Share this post


Link to post
Share on other sites

I almost figured out.

I think it is here folder (header)

can  I copy the file (buttons), give it a different name, and then adapt them ??​

Share this post


Link to post
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..... :-

Edited by dinopacha

Share this post


Link to post
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>'; ?>

Share this post


Link to post
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,

Share this post


Link to post
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???

Edited by dinopacha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×