Skip to content

Instantly share code, notes, and snippets.

View MrJSdev's full-sized avatar
🎯
Loading JS

Riyaz Khan MrJSdev

🎯
Loading JS
View GitHub Profile
<form id="contact-form" name="contact-form" method="post" action="#">
Name: <input type="text" name="name"><br><br>
Email ID: <input type="text" name="name"><br><br>
Subject: <input type="text" name="name"><br><br>
Message: <br>
<textarea rows="3"></textarea> <br><br>
<input type="submit">
</form>
@MrJSdev
MrJSdev / functions.php
Last active March 23, 2017 05:39
facebook adding comment box code
<?php
/**
* Facebook Comments
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/
*/
function extracatchy_facebook_comments() {
echo '<h2>Submit a Comment</h2>';
echo '<div class="fb-comments" data-href="' . get_permalink() . '" data-numposts="5" data-width="100%"></div>';
}
add_action( 'genesis_after_entry', 'extracatchy_facebook_comments' );
<?php
/**
* Facebook Comment Moderator
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/
*/
function be_facebook_comment_moderator() {
// Using your individual facebook ID
echo '<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}" />';
<?php
/**
* Add Facebook SDK
*
*/
function be_facebook_sdk() {
?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
@MrJSdev
MrJSdev / functions.php
Last active March 23, 2017 05:41
Facebook comment Count
<?php
/**
* Facebook for Comment Count
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/
*
* @param int $count
* @param int $post_id
* @return int $count
*/
function ea_facebook_for_comment_count( $count, $post_id ) {
@MrJSdev
MrJSdev / github-example.html
Last active March 22, 2017 18:58
Github Gist Code Example
<!-- Example to Display Code of Github -->
<script src="https://gist.github.com/hunkriyaz/a7b267597699b9c965f2a32d771f44af.js"></script>
<p>
<script src="https://gist.github.com/<gist_id>.js"> </script>
<noscript>
<pre>
//Your code here
//Be sure you escape your tags with &lt; and &gt; when displaying things like HTML.
</pre>
</noscript>
</p>
@MrJSdev
MrJSdev / functions.php
Last active March 23, 2017 18:59
Read More link when someone copy your article
<?php
/* Do Not copy open php tag */
/**
* @author Hunk Riyaz
* @link http://extracatchy.net
*/
function add_copyright_text() {
if (is_single()) { ?>
<?php
/* Do Not copy open php tag */
/**
* @author Hunk Riyaz
* @link http://extracatchy.net
*/
function add_copyright_text() {
if (is_single()) { ?>
@MrJSdev
MrJSdev / functions.php
Last active May 30, 2017 10:59
Full code of Facebook comment Box in Genesis Theme: http://extracatchy.net/add-facebook-comments-in-wordpress/
<?php
/**
* Facebook Comments Box
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/
*/
function extracatchy_facebook_comments() {
echo '<h2>Submit a Comment</h2>';
echo '<div class="fb-comments" data-href="' . get_permalink() . '" data-numposts="5" data-width="100%"></div>';
}
add_action( 'genesis_after_entry', 'extracatchy_facebook_comments' );