Ken_Shea Posted February 21, 2018 Share Posted February 21, 2018 Would like to reference custom buttons to replace those as shown in the pic, where might the be located? I've spent some time searching and while I find loads of them nothing matching these. Thanks much Ken Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 @Ken_Shea Those are actually fonts, and are not gifs. They are not a file on your computer, but rather loaded from the Font Awesome site: https://fontawesome.com/ You may also want to read this: HTH Malcolm Link to comment Share on other sites More sharing options...
Ken_Shea Posted February 21, 2018 Author Share Posted February 21, 2018 That was unexpected, do you know if they are loaded at every occurrence? Thanks for the links, I'll look into it. Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 @Ken_Shea Look in your /includes/application_top.php file ... around line 34. Malcolm (be sure to 'like' a post when someone answers your questions) Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 This is from /includes/languages/english/modules/navbar_modules/nb_shopping_cart.php ... <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2016 osCommerce Released under the GNU General Public License */ define('MODULE_NAVBAR_SHOPPING_CART_TITLE', 'Shopping Cart'); define('MODULE_NAVBAR_SHOPPING_CART_DESCRIPTION', 'Show Shopping Cart in Navbar'); define('MODULE_NAVBAR_SHOPPING_CART_CONTENTS', '<i class="fa fa-shopping-cart"></i> %s item(s) <span class="caret"></span>'); define('MODULE_NAVBAR_SHOPPING_CART_NO_CONTENTS', '<i class="fa fa-shopping-cart"></i> 0 items'); define('MODULE_NAVBAR_SHOPPING_CART_HAS_CONTENTS', '%s item(s), %s'); define('MODULE_NAVBAR_SHOPPING_CART_VIEW_CART', 'View Cart'); define('MODULE_NAVBAR_SHOPPING_CART_CHECKOUT', '<i class="fa fa-angle-right"></i> Checkout'); define('MODULE_NAVBAR_SHOPPING_CART_PRODUCT', '<a href="' . tep_href_link('product_info.php', 'products_id=%s') . '">%s x %s</a>'); Notice the "fa fa-shopping-cart" and "fa fa-angle-right". That's where these 'fonts' (images) are called. Malcolm Link to comment Share on other sites More sharing options...
Ken_Shea Posted February 21, 2018 Author Share Posted February 21, 2018 Thanks for the further clarification, I'll take a look at the old files from 2.3.3.4 which as I recall used images (hopefully) and see how they are applied in the same file. It's all very easy ............. Once you know how LOL. Link to comment Share on other sites More sharing options...
Ken_Shea Posted February 21, 2018 Author Share Posted February 21, 2018 Well, that didn't work which did not surprise me either . Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 What didn't work? Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 @Ken_Shea Are you still trying to update your 2.3.3.4 site? Or, are you now working on the new Edge version? Malcolm Link to comment Share on other sites More sharing options...
Ken_Shea Posted February 21, 2018 Author Share Posted February 21, 2018 No more 2.3.3.4 the new edge version is installed and live, was just hoping some code from the old 2.3.3.4 would help me convert Edge to use custom graphics for buttons. Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 Of course you can use custom graphics for your buttons. Which button(s) do you want to change? I assume you already have the custom graphic. Malcolm Link to comment Share on other sites More sharing options...
Ken_Shea Posted February 21, 2018 Author Share Posted February 21, 2018 Malcolm, I have them yes but of course which ones to use depends on how they actually look in use. I would like to change all the rectangular buttons as an end result, but first on the home page. It's not a functional need, the stock buttons work fine but do not care for the look of the stock white rectangle buttons Ken Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 21, 2018 Share Posted February 21, 2018 @Ken_Shea The buttons are controlled by Bootstrap (the responsive framework on which Edge is built). Bootstrap has its 'standard' buttons. https://www.w3schools.com/bootstrap/bootstrap_ref_css_buttons.asp You can obviously change the style. A quick Google search for Bootstrap Button Generators came up with these (there are more): http://blog.koalite.com/bbg/ https://www.tutorialrepublic.com/twitter-bootstrap-button-generator.php https://bootsnipp.com/buttons Do realize that the osC calls the buttons by the Bootstrap name. If you want to turn a red button into a green button, you need to change the osC code that calls the button, and NOT just change the button color in CSS. Now, none of this has anything to do with the icons / images / gifs / pictures / fonts that you include within your button(s). HTH Malcolm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.