like button implementation into author.php

Posted in: Newspaper
Post count: 49

Hi,

I would ask how I can put the same like button which has in single posts to implement into – the pages, and other posts types – like the author page?

I managed to implement the share buttons into the author.php — even its share-count not correct ( it counts the first post’s shares, instead of the current author page… )

But, I have a request from authors they would like to see the Facebook like, and Google Plus +1 buttons also there.

— The Google +1 button I have to put also to the single posts.. 🙁

Which files I have to edit for get the results on desktop/mobile&amp also?

Thank you,

Zoltan

Post count: 49

forget to copy the sample:

https://www.1000wordsmagazine.com/author/lola/

So – I would like to put the like buttons under the author-box.

I copied this from the page source code:

<div class=”td-post-sharing-bottom”><div class=”td-post-sharing-classic”><iframe frameborder=”0″ src=”https://www.facebook.com/plugins/like.php?href=https://www.1000wordsmagazine.com/author/lola/&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21&#8243; style=”border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;”></iframe></div></div>

The files where I found the mentioned div class:

Newspaper/includes/modules/td_module_single.php
Newspaper/includes/modules/td_module_single_mob.php
Newspaper/includes/wp_booster/td_module_single_base.php

But there area soo confusing code lines – where and what to check….

Thank you, Zoltan

Post count: 20688

Hi,

The like button on posts is implemented according to Facebook documentation
https://developers.facebook.com/docs/plugins/like-button
You could try the same implementation and create a like button on a page if that is what you want. Or maybe use a plugin that has such options.

Thanks

Post count: 49

ok — but my question was – which files/templates I have to edit in tagdiv’s newspaper theme…

I will put there the code – but which files have to edit?

Thx, Zoltan

Post count: 20688

You could simply place the like button code on a page, in a text element
https://www.screencast.com/t/9BVouSrr
https://www.screencast.com/t/GuZpcMA1
Or edit the page template files and enter the button code there, to appear on all pages that use a particular page template
https://www.screencast.com/t/xmyl7ETh

Thanks

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