dinopacha Posted August 12, 2015 Share Posted August 12, 2015 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, :( Link to comment Share on other sites More sharing options...
dinopacha Posted August 12, 2015 Author Share Posted August 12, 2015 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 ?? Link to comment Share on other sites More sharing options...
dinopacha Posted August 12, 2015 Author Share Posted August 12, 2015 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 More sharing options...
Hotclutch Posted August 12, 2015 Share Posted August 12, 2015 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 More sharing options...
dinopacha Posted August 12, 2015 Author Share Posted August 12, 2015 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 More sharing options...
dinopacha Posted August 12, 2015 Author Share Posted August 12, 2015 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.