Change "relatives articles" from h4 to h2

Posted in: Newspaper
Post count: 33

Hello,

On this page : https://thesaurap.fr/articles/kanye-west-yandhi-sera-t-il-lalbum-de-trop/
how can i make the section “Articles connexes” h2 instead of h4 ? Thanks
I used single related posts for this

Post count: 35449

Hi,

In order to do that you can use a custom css, cloud templates, or you can set up from Theme panel > Theme fonts > Module and Block General section BLOCKS/WIDGETS TITLE, but the last one is a global one an will affect more blocks and modules.
For custom css go in Newspaper > Theme panel> Custom code >Custom css and past there this css:
.td-related-title {
font-size: 24px ;
}

Like so: https://www.screencast.com/t/aCbBgLmKTt8

See results: https://www.screencast.com/t/7pGJvQ3THC

Thank you for your understanding.

Post count: 33

Hello,

The question is not about having a font size like h2 but to have an actual h2
it’s an HTML feature and not a CSS feature

https://puu.sh/BAWqn.png
I don’t want an h4 heading but an H2, how can i modify this ?

Post count: 35449

Hi Tibbar,

If you just wish to change h4 with h2 then you need to go in file Newspaper > includes > block_templates and open in notepad ++ look at 102 line there start custom title ( https://www.screencast.com/t/1qaxq3mo ), change there h4 with h2; this will change just the element, the font-size will be the same

See results: https://www.screencast.com/t/vGKN54kRZc

Thank you for your understanding

  • This reply was modified 7 years by Calin.
Post count: 33

It doesn’t change anything, the block used was single related posts

Post count: 35449

Hi,

That’s what I wanted to explain, the size is set on class, not on h2 ( html element ).

Thank you for your understanding.

Post count: 33

Yes i know but i don’t want to change the size i want to change the HTML element for SEO and your instructions don’t work

Post count: 35449

Hi Tibbar,

Sorry, was my mistake , please go in appearance, editor, includes > shortcodes td_block_related_posts.php on line 42 and 49 set h2 instant oh h4.
https://www.screencast.com/t/Jnh6JknJ1LV
See results:
https://www.screencast.com/t/7d9HtOSAhu1

Thanks.

Post count: 33

Hello,
I’ve done the modifications and clear all caches etc.
It still doesn’t work :
https://i.imgur.com/Qnou3f1.png i modified for h2

and when i check the code : https://i.imgur.com/42icqlJ.png
it’s an h4

Post count: 35449

Please refresh wp dashboard and look again if the settings you make are still there.

Post count: 33

The settings are still there

Post count: 35449

Hi,

If was not of one of this, then you are using a cloud template.
Lets try one more time.
Go on your folder website > wp-admin\plugins\td-cloud-library\shortcodes\single\tdb_single_related.php and go on 708/710 line https://www.screencast.com/t/GKDyUokDzBfY

If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks.

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