Custom codes not working after theme 9.7 upgrade

Posted in: Newspaper
Post count: 24

Hi,

We have developed our own plugin called “MY READING LIST” & ” My Archive” . Using this plugin, Subscribed USERS can Add/remove ( kind of book markt) blogs to their ” MY COllECTIONS” as their reading list or archive. USERS can add/remove using a custom BUTTON appear on top of the blog articles. These buttons appear only when we paste the below code on the single.php page.
if ( is_user_logged_in() ) {
?>
<div id=”row” class=”row”>
<?php
echo do_shortcode( ‘[addto_fav]’ );
echo do_shortcode( ‘[addto_archieve]’ );
?>
</div>
<?php
}

After theme update this code is not working and add/remove BUTTONs are not appear above the blog/article.

How to resolve this where should we add the above code to make the “My Reading List” & “My Archive” buttons appear.

Here is the screen shot from a blog page with Button before THEME UPDATE. https://drive.google.com/file/d/1uAOleIacvZ6AV-rqQrPK9bB_2P3xTo7x/view?usp=sharing

Please help us resolve this issue. Let me know of any clarification.

Thanks

Post count: 35449

Hi,

The single.php can be found in wp-content/themes/Newspaper/single.php but you should set the code for each post template you are using and dos are move from theme core in td-composer plugin in wp-content/plugins/td-composer/legacy/Newspaper/parts/single/single_template_1.php

Thank you!

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