Change font size homepage

Posted in: Newspaper
Post count: 83

Hello

I would like to change the font size on homepage main article. I have the block 18 for this main article.

I have checked some options, but I can´t change it.

Thanks

Post count: 7909

Hi,

Block 18 is designed using module mx8 and module 10 and you can set the article title from Theme Panel > Theme Fonts – http://screencast.com/t/3vSemihmyhttp://screencast.com/t/pFKa1wKg0U
To make an idea how the modules are used you can check the Excerpt section and see where each module is used – http://screencast.com/t/dpu3qqaI2m

Thanks!

Post count: 83

Hello

Ok, I changed this font size for block 18. I would like to ask you 2 more doubts about this.

1- I have block 18 big picture for main article on the website, because it has the size I think is suitable for my purpose. I notice that this block includes the article title inside the picture, it could be possible to move it below the picture?

2- As you said to me before, there are blocks designed by different modules… Is there any documentation to know exactly which module I must change for different blocks? I would like to change some articles titles size.

Thanks

Post count: 22421

Hello,

1) You can change the title position by using this custom css. It will need further customization for colors though

.td_module_mx8 {
    position: relative;
    padding-bottom: 80px;
}
.td_block_18 .td-column-3 .td_module_mx8 .td-module-meta-info{
bottom: -55px;
}
.td_module_mx8 .entry-title a{
color:black;
}
.td-module-comments a{
color:black;
}

2) As Alin stated above, you can check the excerpts section to see which module is used by which block.

Thank you!

Post count: 83

Hello

I have written this code but it has just changed the color, it is in the same place.

Thanks

Post count: 22421

Hello,
I have tested this again and it works as expected: http://screencast.com/t/9hYOrU5xm1z
Please make sure you copy the whole code and make sure all tags are closed in your cusom css box. If the code still does not apply, please provide a link to your website so we can inspect it.
Thanks.

Post count: 83

Hello

The website is http://www.futbolday.com

I have checked all code again and it´s ok, but it doesn´t work.

The problem I found with this title is the view displayed on mobile, because the text is very big on mobile and the picture background can´t see properly. That is one of the reason I would like to place it below the picture.

Thanks

Post count: 22421

hello,
Please try this code:

.td_module_mx8:hover .entry-title a{
color:#005689!important;
}
.td_module_mx8 .entry-title a, .td_module_mx8 .td-post-author-name a, .td_module_mx8 .td-post-date, .td_module_mx8 .td-icon-star, .td_module_mx8 .td-icon-star-half, .td_module_mx8 .td-icon-star-empty{
color:black!important;
}
@media (min-width:1140px){
.td_block_18 .td-column-2 .td_module_mx8 .td-module-meta-info{
bottom: -60px;
}
}
@media (max-width:1140px){
.td_block_18 .td-column-2 .td_module_mx8 .td-module-meta-info{
bottom: -100px;
}
@media (max-width: 1018px) and (min-width: 767px){
.td_block_18 .td-column-2 .td_module_mx8 {
padding-bottom: 80px;
}
}
@media (max-width: 767px){
.td_block_18 .td-column-2 .td_module_mx8 {
padding-bottom: 50px;
}
.td_block_18 .td-column-2 .td_module_mx8 .td-module-meta-info{
bottom: -90px;
}
}

It could require further adjustments. Change the values to your liking.
Thank you!

Post count: 83

Hello

I have introduced this code, changing some values didn´t work. I had to introduce an empty space to fix better the position. I noticed that on mobile, the whole title is not moved below the picture.

I would like to know if it could be possible to change the title size just for responsive, setting by default the block 18 configuration. The title size for responsive is exactly what I am worry about, it´s really big for mobile, but I like this size for desktop.

Thank you

Post count: 83

Hello again.

Could be possible to change block 18 title size for mobile? I mean just for responsive.

Thanks

Post count: 22421

Hello,

In order to change a specific viewport font size you have to use media queries like so:
@media(max-width:767px){
.td_block_18 .entry-title{
font-size:10px!important
}
}

Thank you!

Post count: 83

Hello

I have introduced this last code in advanced css phones area and it doesn´t work. Is this the correct place to introduce it?

It appears a warning on line 3, (use of !importante)

Thanks

Post count: 22421

Hi,
If you want to input the code in the phones area, then you have to remove the @media part. The code already contains the mobiles viewport specified so you can introduce it directly in the custom css box, not the advanced one.
Thank you!

Post count: 83

Hello

I have introduced the entire code in the custom area and anything happens. The title size is the same and it hasn´t changed yet on mobile.

I also cleared cache.

Thanks

Post count: 22421

Hi,
I tested the code again on and it seems to work as expected. I set it to change the font size to 10 pixels on the mobile version only: http://screencast.com/t/obXSjeFFci
Please check any other code you may have in your custom css box to see if there are open tags that might cause problems.
Thank you!

Post count: 83

Hello

I have checked again the code and everything is correct, but the font size has not changed on mobile.

There is a warning on line 3, which display “use of !important” I don´t know if this is the problem. I would like to solve this problem because the title appears very big on mobile.

Thanks

Post count: 22421

Hi,
that is just a warning regarding the use of the important attribute. Please provide a link to your website pointing at the block you want changed so i can inspect it and see why the code does not apply.
Thank you!

Post count: 83

Hi

Ok right. Yes, the website is http://www.futbolday.com

The block is 18, I have it as main article on the top of the site.

For example, I have a long title at this moment and it can´t be displayed correctly on mobile due to its size.

Thanks

  • This reply was modified 10 years by Albert.
Post count: 22421

Hi,
It’s always better to see the block itself as yours will not work with the provided code. It needs a more specific code. Please use this one instead:
@media(max-width:767px){
.td_block_18 .td_module_mx8 .td-module-title a{
font-size:18px!important;
}

This should do it: http://screencast.com/t/LMnimWeRRZ9
Thanks.

Post count: 83

Hello

I have solved the problem with the last code. It works properly. I understand you have to see the block itself.

Thank you very much for your support.

Viewing 20 posts - 1 through 20 (of 20 total)
The forum ‘Newspaper’ is closed to new topics and replies.