Forum Replies Created
-
AuthorPosts
-
April 21, 2018 at 3:59 am in reply to: How to style entry-title differently for Page titles vs. Post titles #219164ch320Member
Thanks - this helped me tease out how to control the font size for Page titles separately from the font size for the Blog Page title and individual Blog Post titles, all of which had been at the theme's default setting of 48px. So I left the .entry-title in style.css at 48px (Altitude Pro style.css line 900) which kept my Page titles and Blog Page title at 48px. To make the individual post titles 36px instead of 48px, I added the following in custom css:
.page-template-page_blog h2.entry-title {
color: #000;
font-size: 36px;
}I appreciate the help that led to this solution.
April 20, 2018 at 10:15 am in reply to: How to style entry-title differently for Page titles vs. Post titles #219146ch320MemberYes, the body classes are different on posts and pages, but when examining each I can't trace where those classes are influencing the .entry-header and .entry-title font styles on each of those page types.
Body class for blog posts page:
body class="page-template page-template-page_blog page-template-page_blog-php pageBody class for inner page:
<body class="page-template-default pagech320MemberAll I am seeing is that the words I have marked with the strong tag within my Front Page widget text areas are rendering as 800 font weight, yet my global css style defines the bold/strong font weight as 400.
So my questions are whether I can easily disable the bold font weight being inherited from a definition for the Front Page widget text areas that is overriding my global css bold style, and if not, where do I find the definitions for this class:
div.flexible-widgets.widget-area.widget-full
I have been unable to find it anywhere in the Altitude Pro child theme code, which I have not changed other then to reset the default bold weight of 800 to 400, so I thought anyone with access to that child theme's code might be able to help me regardless of the specific content of my unpublished site.Thanks.
ch320MemberThanks Victor - that worked perfectly. I had been looking for the font weights in style.css, not in functions.php. In my version of Altitude Pro I found the code of interest on line 55 (not 29). The code is a little different from yours, but everything worked well after I added the additional font weights I wanted as follows:
wp_enqueue_style( 'altitude-google-fonts', '//fonts.googleapis.com/css?family=Ek+Mukta:200,400,500,600,700,800', array(), CHILD_THEME_VERSION );
I then changed the b, strong font-weight to 500 in style.css and now have the perfect default weight for Ek Mukta bold, replacing the chunky clunky 800 ExtraBold weight.
Mission accomplished!
-
AuthorPosts