- This topic has 9 replies, 2 voices, and was last updated 8 years, 10 months ago by Vitaliy.
-
AuthorPosts
-
October 26, 2015 at 5:52 pm #78539VitaliyMember
Hello!
Can I change font size of post title separately on home page and post pages?
How can I limit quantity of last posts on home page?Thanks!
October 26, 2015 at 10:56 pm #78562SakinKeymaster@Vitaliy: Please post in your site URL and let me know you desire font size for homepage and rest of the pages. Then I can check in your site and send you custom css.
October 27, 2015 at 1:51 pm #78590VitaliyMemberFont size of post title on home page must be the same as a font size of featured images title.
The quantity of posts on home page must be chosen by me manually (for example 6).October 27, 2015 at 1:56 pm #78592VitaliyMemberCan I add to post title on home page (only) rubric name, for example:
News: Today we…
where “News:” is rubric name.
October 27, 2015 at 2:39 pm #78595SakinKeymaster@Vitaliy:
1. To change the font size, you can add the following css in “Appearance => Theme Options => Custom CSS” box:.home .entry-header .entry-title { font-size: 20px; font-size: 2rem; } @media screen and (max-width: 960px) { .home .entry-header .entry-title { font-size: 18px; font-size: 1.8rem; } }
2. the quantity of post in homepage is controlled from your “Settings => Reading”. There is no option to controlled just for homepage.
3. I don’t get it what you mean rubric name.
October 30, 2015 at 2:49 pm #78818VitaliyMember“I don’t get it what you mean rubric name.”
I mean “post category”. I want add post Category to post title at home page. Thanks fo quick reply.
October 31, 2015 at 11:39 am #78866SakinKeymaster@Vitaliy: That option is not there. So, you need to build child theme and then modify the loop functions.
There are post in your home page. One you have Featured Content Section and Another is latest posts. So, you might need to hire customizer to work on this.
Firs, you can download child theme from http://catchthemes.com/blog/create-child-theme-wordpress/ and then copy
content.php
file to your child theme and then add your category code before<h1 class="entry-title">
title tag.November 2, 2015 at 1:44 pm #79006VitaliyMemberOk, I understand that. Unfortunately, I am not a php-programmer, so is there is a possibility to show me what code I must add? May be this is a commercial service? I have a simple task: add post category to post title.
Thanks.November 2, 2015 at 11:16 pm #79025SakinKeymaster@Vitaliy: You need to know about WordPress function for this level of customization. See this https://codex.wordpress.org/Function_Reference/get_the_category_list . IF not then you need to consider hiring customizer.
November 3, 2015 at 8:00 pm #79059VitaliyMemberIt seems I have done it 🙂 Thanks! Topic has closed.
-
AuthorPosts
- The topic ‘Font size of post title on Home page’ is closed to new replies.