How can I add facebook share button on the event detail page?

  1. Home
  2. Docs
  3. Januas
  4. Frequently Asked Question...
  5. How can I add facebook share button on the event detail page?

How can I add facebook share button on the event detail page?

Yes. You can add the facebook share button on the event detail page. Please follow the steps below:

1) Please don’t forget to take a back up of the file prior to any changes.

2) Open januas/lib/include/functions.php via FTP or Cpanel

3) Search for the following line (apx line no:351):

<iframe src=”//www.facebook.com/plugins/like.php?locale=<?php echo januas_get_language_code(); ?>&amp;href=<?php echo $url; ?>&amp;send=false&amp;layout=button_count&amp;width=95&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21″ frameborder=”0″ style=”border:none; overflow:hidden; width:95px; height:21px;” allowTransparency=”true”></iframe>

4) Replace that code with the following:

<iframe src=”//www.facebook.com/plugins/like.php?locale=<?php echo januas_get_language_code(); ?>&amp;href=<?php echo $url; ?>&amp;send=true&amp;layout=button_count&amp;width=95&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21″ frameborder=”0″ style=”border:none; overflow:hidden; width:130px; height:21px;” allowTransparency=”true”></iframe>

5) Open januas/style.css. Add the following style at the end of the page.

.single #top_event .data { width:340px;}
.single #top_event section.entry-content {width:1020px;}

6) Save the file.

Was this article helpful to you? Yes 1 No 2