Where is the code to change the size/color/font of the H1, H2, tags, etc?
Announcement
Collapse
No announcement yet.
Where is the code to change the size/color/font of the H1, H2, tags, etc?
Collapse
X
-
Settings --> Design --> Template Editor --> Go to folder (choose the highlighted yellow one that ends with /css) --> Edit the default.css (or whatever it's named if you have changed it.
After making changes, make sure to flush the store cache otherwise you will see no difference. Settings --> Store Settings --> Scroll down to the very bottom and click the "Clear Cache" button.
Your browser may still cache the CSS files, so while on the front-end page you are trying to make style changes to, do a Ctrl + Shift + R to do a hard reload (dumps all cached things for the page).
- 1 like
-
ForcedFabllc I"m not quite sure what you are referring to... maybe a quick screenshot would clarify?
Comment
-
Originally posted by ForcedFabllc View PostWhere can I find the place to edit the subcategory names under the pictures on our site? I want to bold them and increase the font size a bunch. I just found out how to edit the size of the box for the photo, but no where I can edit it all.
- 1 like
Comment
-
ForcedFabllc - Not sure if you found a solution to changing the font-size and font-weight of the subcategory names yet.
But I found the .subcategories . name code using the same inspect element method that fastergrace suggested. To change the size and weight of my subcategory names, I'd need to add code similar to the one below to my default_modified.css file:
.sub-categories .name {
display: block;
font-weight: 600;
font-size: 16px;
}
The .sub-categories .name code is found in the layout.css file, but it appears that adding the above (or similar code) to the default_modified.css file will override it.Last edited by ScribeTime; 10-09-2015, 07:47 PM.
Comment
-
Here is a screen shot of the text I want to change. I also want to kill the space between the thumbnail and the word or at least reduce it, I think I may have figured that one out though.
http://snag.gy/tBkKv.jpg
Comment
-
You currently have this HTML on the category pages (under the START: SUB_CATEGORIES_FORMAT section if you look in your template):
HTML Code:<li> <div class="sub-categories"> <a href="Audi_c_17060.html"> <!--START: SUB_CATEGORY_IMAGE--> <span class="img"><img src="assets/images/Category Photos/Audi Performance Parts.jpg" alt="Audi"></span> <!--END: SUB_CATEGORY_IMAGE--> <!--START: SUB_CATEGORY_NAME--> <span class="name">Audi</span> <!--START: SUB_CATEGORY_NAME--></a> <div class="desc"></div> </div> </li>
HTML Code:.sub-categories .img { display: block; min-height: 160px; }
So in your default.css somewhere, add:
HTML Code:.myCustomSubCatClass { min-height: 0px; // or whatever spacing you want here }
HTML Code:<li> <div class="sub-categories"> <a href="Audi_c_17060.html"> <!--START: SUB_CATEGORY_IMAGE--> <span class="img myCustomSubCatClass"><img src="assets/images/Category Photos/Audi Performance Parts.jpg" alt="Audi"></span> <!--END: SUB_CATEGORY_IMAGE--> <!--START: SUB_CATEGORY_NAME--> <span class="name">Audi</span> <!--START: SUB_CATEGORY_NAME--></a> <div class="desc"></div> </div> </li>
And here's the (simulated) result:
http://s28.postimg.org/v16m5482l/sample.png
Comment
Comment