-
AuthorPosts
-
January 23, 2014 at 11:45 pm #194020
Hi,
I tried many ways to change the logo size and margin, and nothing works:
- Enabled development mode
- Created a custom.css in the css folder of the template = no changes
- Edited the style.less in less directory = no changes
- Edited the style.less.css in the t3-assets folder = no changes
Compiled the less to css and nothing.
This is the code I tried to edit:
.logo h1, .logo h1 a {
display: inline-block;
line-height: 0;
margin: 0px 5px 0 50px;
}
.logo-image a {
background-image: url("../../../templates/ja_fubix/images/logo.png");
background-repeat: no-repeat;
width: 200px;
height: 40px;This is my temporal site: http://184.107.237.30/
Please help.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 24, 2014 at 4:10 am #519623Hi Carlos,
When Development Mode is enabled, your site will load LESS file so in order to change these properties for logo (in this case, you’re using Celadon theme), you open file: /templates/ja_fubix/less/style.less and look for this rule:
// Logo
// ---------------------------------------------------------
.logo {
border-left: solid 1px @T3borderColor;
border-right: solid 1px @T3borderColor;
height: @navbarHeight;
float: left;
display: inline-block;h1, h1 a {
display: inline-block;
line-height: 1;
margin: 5px 10px 0 10px;
}
}
change to your desired value. Then in backend of your site > template manager section > click button ‘Compile Less to Css’.
Note that: you shouldn’t change in t3-assets folder as this folder holds optimized file only, not template’s files. And check out this documentation for instruction how to custom CSS: http://t3-framework.org/documentation/bs3-customization#custom-css
1 user says Thank You to Saguaros for this useful post
January 24, 2014 at 5:24 pm #519729Very Thanks now it works!
Another question, why this changes don’t works when editing the custom.css file?
I think that my changes will be lost in the next template update.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 25, 2014 at 2:29 am #519764I agree that the Less file would be affected when updating template. My above suggestion helps you to know how to work with Less. For changing in CSS, it would be best if you add your own custom CSS in that custom.css file, it should work.
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Saguaros 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum