Community Forums 

Main Content

Logo Image Special String resize

    Nov 08 2016 08:11:45

    #1

    Drake

    Join date : 2009-06-19      Posts : 52

    Hi - I created my first shopping cart with Mal's about 10 years ago and am now creating another. Back then, I used the following code to put an image in my header/logo.

    <div align="center"><img src="http://www.mydomain.com/SiteImages/_t/website%20header%20logo_JPG.jpg"; width="192 height="211" alt="" border="0"></div><br><h1 style="text-align: center;">My Store
    </h1>

    I no longer have a server I can store my image on and saw that I can add one to the image library and use {logo} as a special string. How do I put the special sting into the code above so that the image is sized as it is above?



    Nov 08 2016 16:16:01

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    You would need to size your image to that size before you upload it to Mals library and then you replace <img src="http://www.mydomain.com/SiteImages/_t/website%20header%20logo_JPG.jpg";; width="192 height="211" alt="" border="0"> with {logo}

    For furture reference... I think there is a way to upload an image to your image library in wix even if you do not want it to show on your website. I forget how to do it tho. I am sure you can find the answer to that in their forum.

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Nov 09 2016 06:39:26

    #3

    Drake

    Join date : 2009-06-19      Posts : 52

    That helped a lot, Debbie. It looks a lot better now, but it inserts it twice, right above each other.

    Here is my code:

    <div align="center">{logo}</div><br><h1 style="text-align: center;">Test Site
    </h1>

    Any thoughts?

    Also, for products, I am wondering if I can place a product image into the frame with the quantity, price, etc. Can I do that, and can I use the Image LIbrary to store images for that as well?



    Nov 09 2016 14:56:11

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    The reason it is adding it twice is because it adds it normally when you use the logo image and then you are adding it again when you add it in the header field. I forgot about that. When I do what you are doing I add the logo as an extra image not as a logo. All you need to do is under the header message section is to remove <div align="center">{logo}</div><br>

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Nov 10 2016 07:14:47

    #5

    Drake

    Join date : 2009-06-19      Posts : 52

    Perfect! If I understand what you are saying, is it that the Image Library has an image designated as Logo, and so it automatically puts it in that spot?

    Also, for products, I am wondering if I can place a product image into the frame with the quantity, price, etc. Can I do that, and can I use the Image LIbrary to store images for that as well?



    Nov 10 2016 14:45:10

    #6

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    No, The cart does not store images for products.

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.