-
AuthorPosts
-
hjalte1983 Friend
hjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 13, 2014 at 10:35 am #199645Hi, I want to change the font size and color of price-new , price-old and the discount
But its like they are all combined in the stylesheet.I want the price old to be smaller than price new, and make price new another color.
Regards.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
July 13, 2014 at 8:58 pm #542162So that we can try to best assist you, please provide the url of the site you’re working on,
as well set “Optimize CSS’ to “No” within your Template Manager–General settingesTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
July 13, 2014 at 9:18 pm #542168I received your site info … but where can one view the issue you are describing?
Any particular product?
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 14, 2014 at 5:36 am #542197all products that are on sale, ( special ).
see under outlet
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
July 14, 2014 at 9:14 pm #542325I believe I understand what you’re trying to accomplish.
Try This . . . . .
STEP ONE:
Within file path —> /components/com_mijoshop/opencart/catalog/view/theme/decor/stylesheet/stylesheet.css
at line 806, remove the “color” property – as follows:
.product-info .price span {
display: block;
}STEP TWO:
Within file path —> /components/com_mijoshop/opencart/catalog/view/theme/default/stylesheet/stylesheet.css
at line 2109, modify the follwoing CSS rule as follows:
.product-info .price-old {
color: #000
text-decoration: line-through;
}NOTE: The color black (i.e. #000) is used only as an example.
You can modify to whatever color code you wish.STEP THREE:
Within file path –> /components/com_mijoshop/opencart/catalog/view/theme/decor/stylesheet/stylesheet.css
at line 30, modify the “color” property to whatever color code you wish:
.price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 14px;
font-weight: normal;
}You can also add other CSS styling to the prices as desired (i.e. bold, size, italic, etc.)
Hope That Helps.
😎
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 15, 2014 at 6:39 am #542374hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 15, 2014 at 6:58 am #542376Can you also help me with this margin / border, has been bugging me for a week now..
Would like to have the categories closer to the top products.. so there isnt that much white empty space.
But havn’t been able to find the right code.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 15, 2014 at 9:26 am #542399Open templates/ja_decor/css/custom.css file and add css style below.
.ja-product-grid {
margin-bottom: -60px;
}It will help decreases empty space in products
1 user says Thank You to Ninja Lead for this useful post
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 16, 2014 at 12:28 pm #542575Thanks Again @ninja Lead could you or @tomc help me with this font-size ? it just wont show as 35px
<em>@hjalte1983 436724 wrote:</em><blockquote>Hey @tomc yeah helps some, I actually tried some of that, but having trouble getting the price new font size to work.
i changed it to
.price-new {
color: #f0141e;
font-family: 'Muli',serif;
font-size: 35px;
font-weight: normal;
}I also tried to use font-size: 250% without luck.
Thanks again</blockquote>
Ah i just noticed where it changed.
So where can i find the price new inside the product ?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
July 16, 2014 at 4:33 pm #542596Here’s what you do . . . . . .
Within file path —> /components/com_mijoshop/opencart/catalog/view/theme/decor/stylesheet/stylesheet.css
at line 16, remove all references to “price-new” within the CSS rule.
.box-product .price, .box-product .price-new, .product-grid .price, .product-grid .price-new, .product-info .price, .product-info .price-new, .ja-product-grid .price, .ja-product-grid .price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 14px;
font-weight: normal;
}It should look like this when you’re done:
.box-product .price, .product-grid .price, .product-info .price, .ja-product-grid .price {
color: #f0141e
font-family: 'Muli',serif;
font-size: 14px;
font-weight: normal;
}THEN, at line 30, modify the “font-size” property to your liking:
.price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 12px;
font-weight: normal;
}Hope That Helps 😎
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
July 16, 2014 at 5:02 pm #542606By the way . . . . .
If you want to better control the font styling for individual “price-new” elements throughout your site, you can simply add the classes you deleted from the original CSS rule (above) and add them individually within the same stylesheet.css – for example:
.box-product .price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 12px;
font-weight: normal;
}.product-grid .price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 12px;
font-weight: normal;
}.product-info .price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 12px;
font-weight: normal;
}.ja-product-grid .price-new {
color: #f0141e
font-family: 'Muli',serif;
font-size: 12px;
font-weight: normal;
}. . . . and then modify each class as you would like (i.e. font, size, color, weight)
Make Sense? 🙂
1 user says Thank You to TomC for this useful post
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
July 17, 2014 at 2:58 pm #542748yes makes sense, thanks Tom
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
August 29, 2014 at 9:01 pm #547707<em>@Ninja Lead 436755 wrote:</em><blockquote>Open templates/ja_decor/css/custom.css file and add css style below.
.ja-product-grid {
margin-bottom: -60px;
}It will help decreases empty space in products</blockquote>
@ninja Lead i’ve been working back and forth with the margins, and its now set to -150 which look good in top.
But i’m having trouble at the bottom:Also when going responsive it look like this:
Can you help me out,
Regards.
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 1, 2014 at 4:54 am #547803You can try to use the solution below
Open templates/ja_decor/css/custom.css file
find and change
.ja-product-grid {
margin-bottom: -150px;
}
To
.box_oc .featuredproducts > .ja-product-grid {
margin-bottom: -150px;
}
Let me know if it helps
-
AuthorPosts
This topic contains 16 replies, has 3 voices, and was last updated by hjalte1983 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum