[SOLVED] Replace + and - b4 "Add to cart" Button

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #68641

Hello there

I would like to replace the "+" and "-" Button with my own Buttons (gifs). Because I use the red_style.css, the "+" and "-" is not really visible. In the attached files, you can see what I mean and what I would like todo.

I have added in the red_style.css in the following sections the following code (background-image I mean):

#hikashop_product_quantity_field_change_plus{
	width:15px;
	height:15px;
	display:block;
	background-image:url(../../../images/plus.gif);
}
	
#hikashop_product_quantity_field_change_minus{
	width:15px;
	height:15px;
	display:block;
	background-image:url(../../../images/minus.gif);
}

I also used the full path of the icons to ensure, that it is not a problem with the relative path ( www.waffenmarti.ch/shop/images/plus.gif and www.waffenmarti.ch/shop/images/minus.gif ) but still no success.

Is there any idea how I can do this?
Best regards
Mike

Attachments:
Last edit: 12 years 1 month ago by mike.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68808

Hi,

Your modifications look good.

It must be something else:

caching on your website

caching by your browser

your modifications are not saved in the configuration of HikaShop

or something like that.

We would have to look at the HTML/CSS of your page in order to tell you more precisely.

The following user(s) said Thank You: mike

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #69058

I made a step: a big mistake from my side was to begin a CSS-Section with a # instead of a .! Don't ask why I did that ;) It seems, that I have no idea what I'm doing in a CSS ;)

Then I had to enlarge the size to 25px by 25px and remove the background color from CSS-Section called "hikashop_product_quantity_field_change" (/** background-color:#c10303; */)

I also removed the whole section: .hikashop_product_quantity_field_change:hover (since it don't look good)

Now there is only 1 problem left:
How do I remove this little red "+" and "-"? (see Screenshoot) that is now printed by some code (not the +/- right side of the arrow!).

Thanks for your help!
Best regards
Mike

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #69176

You can use such CSS:

#hikashop_product_quantity_field_change_plus,#hikashop_product_quantity_field_change_minus{
color: transparent !important;
}

The following user(s) said Thank You: mike

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #69213

The final code blocks are:

.hikashop_product_quantity_field_change_plus{
    width:24px;
    height:24px;
    display:block;
    background-image:url(../../../images/plus.png);
    color:transparent !important;
}

... and...
.hikashop_product_quantity_field_change_minus{
    width:24px;
    height:24px;
    display:block;
    background-image:url(../../../images/minus.png);
    color:transparent !important;
}

In addition, you have to remove the background color from the following code:
.hikashop_product_quantity_field_change {
    background-color: #C10303;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    text-align: center;
}

They produce something like in the attached picture!
Thanks for your help!
Mike

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum