How to Put a button with Link Just after the Title

Posted in: Newspaper
Post count: 104

Hello,

I am trying to put a button ahead of each title of the post and I wrote this code in the td_module_single_base.php file in Newspaper->includes->wp-booster folder.


function get_title($cut_at = '') {
$buffy = '';
if (!empty($this->title)) {
$buffy .= '<h1 class="entry-title">';
if ($this->is_single === true) {
$buffy .= $this->title;
$sample_post_meta = get_post_meta($this->post->ID, 'hindi_post_url',true);
if (!empty($sample_post_meta)) {

$buffy .='post->ID, 'hindi_post_url',true) . '">

';
}
else{
$buffy .='post->ID, 'english_post_url',true) . '">

';

}
} else {
$buffy .='href . '" rel="bookmark" title="' . $this->title_attribute . '">';
$buffy .= $this->title;
$buffy .='
';
}
$buffy .= '</h1>';
}

return $buffy;
}

But no button is getting shown in the front end.
URL – https://www.naukrinama.com/stressbuster/weird-nift-students-performing-unique-campaign-to-legalise-prostituition/

Please Let me Know How to Get This Resolved. I have put a simple if-else case that If the Hindi Custom Field has a Value its button will be shown else the english button will be shown.

Post count: 22421

Hello,
Unfortunately this represents customization and is not covered by the theme support. Sorry. If you cannot manage to do it, you will have top get some hired help as time does not allow us to tackle complex tasks. We try to help out where we can if the customization is not time-consuming, but we have no customization department to provide custom work.
Thank you for your understanding.

Post count: 104

Hello Bogdan,

Thanks for your revert !

I understand that this is customization and I am trying to achieve that myself. What I could make out that we have to make changes to td_module_single_base.php to achieve what i am trying to do.

I did that on my other portal and it worked well – https://www.naukrinama.com/cochin-port-trust-recruitment-2016-marine-engineer-dredger-commander-posts/

But when i am trying to put the same code here it is not getting visible.

So I just wanted a bit of support regarding what the error I am making over here and getting this resolved. Let me know if this is possible.

Post count: 22421

Hello,

On your other site you use newspaper 6.5 The code has been changed since and one code that works on one version of the theme will probably not work on another as code gets updated. If you want to use the same code, you have to use the same theme version.

Thank you!

Post count: 104

Thanks Bogdon for your revert !

Can you let me know which file to make changes in to achieve this functionality. I just want to put a button ahead of the title for each post.

For v6.5 i already know the file, can you just tell me file i have to make changes in for v6.7

Post count: 23312

Hello rishab55555,

If you are not aware of all the steps which have been made in this regard and if not you who made these changes please contact the developer who made all of these because I am not aware of these modifications and our support are not covered by these customizations. If you want to display more levels in our theme and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide this type of services, sorry!
As a note, pretty please do not to insist on custom work because we cannot provide this!

Thanks for your understanding!

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