Logo image -> button image

Ask the community for help and support.
Post Reply
ce7
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Has thanked: 21 times

Logo image -> button image

Post by ce7 »

hi,

I am trying to add button image at the header. Use store_logo.php as a template and modify the files and codes.

Having 2 problems need to get help.

#1.
INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`,
`use_function`, `set_function`)
VALUES
('Rental button', 'RENTAL_BUTTON', 'button_rental.png', 'This is the filename of your Rental Button. This should be updated at admin > configuration > Rental Button', 6, 1000, NULL, NOW(), NULL, NULL)
;

run the SQL but there is no Rental button show up on the configuration area. How to change it to make it work?

#2
<label class="custom-file-label" for="inputRentalButton"><?= TEXT_BUTTON_RENTAL_IMAGE; ?></label>

<script>$(document).on('change', '#inputRentalButton', function (event) { $(this).next('.custom-file-label').html(event.target.files[0].name); });</script>

try to update new image but it doesn't work. How to change the code to make it work?

https://imgur.com/a/gm7U4p5

thanks!
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Logo image -> button image

Post by heatherbell »

ce7 wrote: Mon Oct 31, 2022 12:19 am I am trying to add button image at the header. Use store_logo.php as a template and modify the files and codes.
Many ways of doing things but think it would be simpler to just create a header content module to show the image/link and just upload the image to server with FTP.
Post Reply