I have included custom code in some blocks to modify the title font size, but at the same time that change the title, also change the category label in the module. How can I make the size of the category label remain in its default size?
below, de custom code.
.class13 .td-module-title a, .class13 a{
font-size: 22px;
line-height: 26px;
font-weight: 700;
}
.class13 .td-excerpt {
font-size: 12px;
font-family: ‘Open Sans’, arial, sans-serif;
margin-top: 9px;
}
Hi,
The article title can be customized for each module or in general, in the theme panel
– https://www.screencast.com/t/7aVlic5gNW
The excerpt font as well
– https://www.screencast.com/t/7gNvwhr0
If you would like to change the font properties just for the article title only for a particular block, you can use a custom class just like I believe you are doing now.
The code should look like this
– https://www.screencast.com/t/sMw2Wg6pllN
.class13 .td-module-title a{
font-size: 22px;
line-height: 26px;
font-weight: 700;
}
.class13 .td-excerpt {
font-size: 12px;
font-family: 'Open Sans', arial, sans-serif;
margin-top: 9px;
}
It will affect only the article title, and the excerpt for the blocks that have the custom class added.
Thanks
Sorry. Maybe I did not express myself well. The problem I am having is that by modifying the size of the title with a specific class will also modify the size of the category tag. And I want the category tag to be kept with the default size. See the atached pictyure
This is the .class code aplied to this module:
/* Amplia del tamaño del titular y blanco*/
.class11 .td-module-title a, .class11 a{
font-size: 40px;
line-height: 44px;
font-weight: 600;
}
.class11 .td-post-category {
font-family: 'Open Sans', arial, sans-serif;
font-size: 10px;
font-weight: 600;
line-height: 1;
}
Hi,
The example code I provided will not modify the category font properties. That is happening because you are changing all the links fonts for the block with the custom class
– https://www.screencast.com/t/hKJOiyAG6
Remove that part of the code and only the article titles will be affected. At the moment the code you are using will modify all the links for all the elements inside that block.
Thanks