Adding a < BR > tag to cut long titles

Posted in: Newspaper
Post count: 42

Hello,

My site uses quite ling titles, and we need to be able to cut them visually where needed.
And noticed that the <br /> tag in an article title is not working with Big Grid or flex block or modules.
https://www.monacohebdo.mc/

the tag seems to be ignored.
(but still here when you go on the article page)

https://www.monacohebdo.mc/29639-cedric-biscay-shibuya-productions-shenmue
(if you inspect the title, you can see the <br/> is there and effective)

Is there a way to make this <br /> tag not ignored in those modules ?

Many thanks,
Robin.

Post count: 35449

Hi robink,

Unfortunately in this way were build the modules, the post title will be display without html tags, on posts/articles the html tags are applying to can customize the post/article more easy! for modules the only way that you can make that html tags to affect the titles in modules/blocks/grids is to make changes in thee core.

Thank you for your understanding!

Post count: 42

Hello Calin,

OK I understand.

Could you give me more info on which core files I need to edit, for the Big Grid, flex bloc, and modules, to allow HTML tags ?

eventually wich line I need to edit ?

So that i can put those modified files in my child theme … ?

Many thanks,
Robin.

Post count: 35449

Hi,

Unfortunately I do not know if this a good idea, but I will try to help you, the file path it is -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php and try to make the changes as in this example -> http://prntscr.com/q0fvj8 -> http://prntscr.com/q0fw8s
Unfortunately this file can not be set in child.

Thank you!

Post count: 42

Perfectly working !
many thanks, i must just not forget to republish (or redo) the mod at next update.

Thanks calin 🙂

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