Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
zeropiquet
tagDiv Member

Unfortunately I can’t stay with PHP 7.4, I have services that require at least PHP 8.0 and so I had to find a temporary solution:
if it can help you, I commented line 2677 of td_block.php and there are no more errors, and everything seems to be ok..gradient is there, overlay too

zeropiquet
tagDiv Member

Hi, thanks for reply . yes, it’s a strange issue started from php 8 (i have tried with php 8.0 , 8.1 and 8.2 : same error) . And this problem is only on two domains , all with licensed Newspaper , all with same plugins . They are on different server , so i can’t that it’s a server thing related to.

But i’m sorry but i can’t give you admin access. I can give you error log , report how my website is

zeropiquet
tagDiv Member

I don’t think it’s not possible,
I managed it myself through simple snippets and custom fields, but the problem is that you have some function that eliminates the html codes from the frontpage when I hook the_title with my snippets so i cannot change , for example, color of font of secondary title , or adding padding .

this is the code , you can use it

function title_kicker ( $title, $post_id ) {
if ( ! is_single() && ! is_admin() && $field00 = get_post_meta( $post_id, ‘post_12345’, true ) ) {

$title = ‘<span class=”title_kicker” style=”letter-spacing: 0px !important;font-size:16px;color:red;text-transform:uppercase;line-height:20px;”>’.$field00.'<br/> </span>’ .$title;

}

return $title;

}

add_filter( ‘the_title’, ‘title_kicker’ , 10, 2 );

If I do the same thing with the twenty_twenty everything works fine

So I would like to know how you manipulate the_title and how can I precisely execute the html tags in the_title

If I try wp_kses it crashes, if I try esc_attr the code becomes visible but not executable

Also I have 50 websites with newspaper and I don’t want to have to migrate to another template that supports this feature (like jnews or foxiz)

zeropiquet
tagDiv Member

Very very thanks,
i’ve used a script to convert excerpt as shortcode to obtain this but your method are better

zeropiquet
tagDiv Member

Hi,
please tell me how you solved ?

Viewing 5 posts - 1 through 5 (of 5 total)