- This topic has 21 replies, 8 voices, and was last updated 7 years, 5 months ago by Sakin.
-
AuthorPosts
-
January 11, 2013 at 7:06 am #2931eag1111Member
Hello Friends,
I’d like to change the size and type of font I use in my pages but don’t know the CSS Code to do so. Can anyone give me a CSS formula so I can insert a font and a size for the font? (I’m not sure which font type I’d like to use yet). My site is womenfindingtruelove.com.
Thank you for your time.
January 13, 2013 at 1:32 am #2963SakinKeymaster@eag1111: Currently it uses the font “Arial,sans-serif” and “Lobster” for site title.
To change the general font. You need to change it in the following css:
/* For All content */
body {
font-family: Arial,sans-serif; /* Type of Font */
font-size: 12px; /* Size of Font */
line-height: 24px; /* Line Height of Font */
}
/* For Site Title content */
h1#site-title {
font-family: 'Lobster, Arial,sans-serif';
font-size: 45px;
}
See this for tutorial on Font CSS: http://www.w3schools.com/css/css_font.asp and Websafe fonts: http://www.w3schools.com/cssref/css_websafe_fonts.asp
January 13, 2013 at 2:09 am #2966eag1111MemberThis is A+ information, thank you Sakin. I’ll try it.
November 12, 2013 at 7:08 am #17101adminleahParticipanthi Sakin, can we change the font size on the slider images only and not the entire font size of the rest of the text content?
November 12, 2013 at 11:33 am #17116SakinKeymaster@adminleah: Yes you can. Send me your site URL and then I will check in.
November 12, 2013 at 11:49 am #17118adminleahParticipanthello it’s test.shareapet.org
November 13, 2013 at 4:35 pm #17162SakinKeymaster@adminleah: The CSS will be as below. But be careful about the responsive design. This font size you added will be for all devices, including your mobile devices. So, don’t make it too big. But if you have to change only for large screens then let me know it.
/* For Slider Title Font Size */ #main-slider .entry-title { font-size: 18px; } /* For Slider Excerpt Content Font Size */ #main-slider .entry-content { font-size: 14px; }
November 14, 2013 at 4:06 am #17204adminleahParticipantThanks Sakin. We are seeing large gaps on the left side column on our homepage test.shareapet.org and the body content. In some screen sizes, there is double main navigation header, while in some screens its just one line main navigation header. some menu items drop to 2nd line in some screens. is there a fix to this?
November 14, 2013 at 1:14 pm #17217SakinKeymaster@adminleah: It’s because you have added the width to 200px in your Custom CSS box. So, find the following CSS in “Appearance => Theme Options => Custom CSS” box.
@media screen and (min-width: 1190px) { #header-right { float: left; } #secondary { width: 200px; } }
And replace with the following, where I have remove 200px width.
@media screen and (min-width: 1190px) { #header-right { float: left; } }
January 30, 2014 at 6:46 pm #19791BEAUVAISMemberHELLO
IS IT POSSIBLE TO Add A NEW FONT TO THE THEME? I WANT TO USE THE FONT BolonewtRegular,
THANKSJanuary 30, 2014 at 10:09 pm #19795SakinKeymaster@BEAUVAIS: BolonewtRegular font is not a Google font or web font. We can only add GPL Web Font or Google Font in our theme pack. If you have license of this font then you can use Font Embed and add it. You can use online web font generator at http://www.fontsquirrel.com/tools/webfont-generator
March 29, 2014 at 8:34 pm #23321kbMemberIs there anyway I can change the header font size, that appears on posts and pages. I couldn’t figure out where to alter the css code. It’s the h2 (subheading style text) in particular.
My url is:http://ealing.streetpastors.org.uk/Also is there a way of removing the top right text that displays the format of the post, e.g. “Image” or “Link”. Thank you
March 30, 2014 at 12:14 am #23386SakinKeymaster@kb: It’s not simple to change the font size for responsive design theme. When we change the font size for large screen, we need to change all the way to small screens. To adjust the header font size of post and page, you need to adjust the size in the following css and add it in “Appearance => Theme Options => Custom CSS” box.
/* For Large Screen */ .entry-title { font-size: 26px; line-height: 1.5em; } /* For Screen with max width 768px */ @media screen and (max-width: 768px) { .entry-title { font-size: 20px; line-height: 28px; } } /* For Screen with max width 479px */ @media screen and (max-width: 479px) { .entry-title { font-size: 18px; line-height: 24px; } } /* For Screen with max width 320px */ @media screen and (max-width: 320px) { .entry-title { font-size: 16px; line-height: 22px; } }
To remove the top right text that displays the format of the post, e.g. “Image” or “Link”, you need to add the following css in “Appearance => Theme Options => Custom CSS” box.
.entry-header .entry-format { display: none; }
March 30, 2014 at 2:52 am #23409kbMemberAmazing thank you!
February 19, 2015 at 11:20 pm #52009CarlaParticipantHello Sakin,
I hope I can ask my question here.
I changed the fonts to Cochin in my catch evolution site (http://www.lechampradis.com/test/), but they don’t respond on my Samsung-android-tablet.
I tried it on Ipad, where it did show.
Could you help me with this?
Thank you very much in advance.
CarlaFebruary 21, 2015 at 12:46 am #52079SakinKeymaster@Carla: Please don’t post same question in 2 places. It just makes me confused. I have already replied you in http://catchthemes.com/support-forum/topic/changed-fonts-dont-respond-on-android/
January 19, 2017 at 2:21 pm #107472lanretobiParticipanthelo Sakin, i use desktop version of ur themes for mobile (i hate responsive design) pls how can i make fonts larger on only mobile phones but small on desktop and tablets. thanks
January 20, 2017 at 2:13 pm #107576SakinKeymaster@lanretobi: You need to add in your site URL and let me know the sizes that you want to desktop and mobile devices. Then, you can customize that using “Additional CSS”
January 20, 2017 at 11:51 pm #107637lanretobiParticipantlaidejaspercarefoundation.com/
i dont like the responsive design of this theme because it is not fullscreen, so i used css to create my own responsive design by increasing the font size on mobile phones but now the fonts are too big on tablets. pls how can i do it so that the font size change does not affect tablets i used 980px? thanks SakinJanuary 23, 2017 at 10:44 pm #107814SakinKeymaster@lanretobi: it’s not full screen as the the no sidebar full content layout is there only in pro version. Check out demo at https://catchthemes.com/demo/catch-kathmandu/layout-options/no-sidebar-full-width/ and also check out them instructions at https://catchthemes.com/theme-instructions/catch-kathmandu-pro/
So, if you want to increase the font in mobile devices only then you can use
@media screen and (max-width: 780px) { /* Add CSS Here */ }
But if you want to change for all devices below 980px then, you can use the following:
@media screen and (max-width: 979px) { /* Add CSS Here */ }
-
AuthorPosts
- The topic ‘Changing Type of Font and size for my pages’ is closed to new replies.