Under-Post sharing buttons

Posted in: Newsmag
Post count: 26

I am modifying the like facebook button under the post, to make it a page like button.

I edited td_module_single_base.php on line 137, as follows:

//$buffy .= '<iframe frameBorder="0" src="' . td_global::$http_or_https . '://www.facebook.com/plugins/like.php?href=' . $this->href . '&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21" style="border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;"></iframe>';

$buffy .= '

<div class="fb-like" data-href="https://www.facebook.com/larepublicadiario"
data-layout="standard" data-action="like" data-show-faces="false" data-share="false"></div>

';

But the page is still showing the original like button.

Why does it happen?

Caché? – I don’t think so, since it shows even in new posts that are not cached.

Thanks.

Post count: 26

What if I want to refresh the changes made in wp_booster/ file?

I deleted whole cache and still it does not apply changes.

Thanks :=)

Post count: 780

Hi,

please note that there are two functions in that file: get_social_sharing_bottom() and get_social_sharing_top() . Please verify that you changed the appropriate one.

Post count: 780

For caching: are you using a CDN? Are you on a vps server with custom APC/opcache settings ?

Post count: 26

Thank you very much, Radu.

Great Job.

Peace 🙂

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