64f2bc9d by Jeff Balicki

disqus

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent d8472a2f
......@@ -14473,6 +14473,14 @@ h1 + p, .h1 + p {
border-bottom: 2px solid #3EAF49;
}
#wpdcom {
max-width: unset !important;
}
#comments {
margin: 0px;
}
.collapsing {
overflow: visible !important;
}
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -12,6 +12,8 @@ include 'inc/blocks.php';
include 'inc/shortcodes-resources.php';
include 'inc/menu.php';
include 'inc/shortcodes-contest.php';
include 'inc/shortcodes-disqus.php';
/**
......@@ -98,18 +100,7 @@ function understrap_child_customize_controls_js() {
add_action( 'customize_controls_enqueue_scripts', 'understrap_child_customize_controls_js' );
require_once __DIR__.'/inc/filters.php';
// add_action( 'template_redirect', 'redirect_to_specific_page' );
// function redirect_to_specific_page() {
// if (! is_page('login') && !is_user_logged_in()) {
// wp_redirect(home_url()."/login/", 301 );
// exit;
// }
// }
// require_once __DIR__.'/inc/filters.php';
remove_action( 'um_logout_user_links', 'um_logout_user_links', 100 );
add_action( 'um_logout_user_links', 'um_logout_user_links_new', 100 );
......
<?php
add_shortcode('disqus-thread', 'disqus_thread');
function disqus_thread(){
ob_start();
if ( comments_open() || get_comments_number() ) {
comments_template();
}
if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){
include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
}
wp_reset_query();
$output = ob_get_clean();
return $output;
}
function comment_support_for_my_custom_post_type() {
add_post_type_support( 'page', 'comments' );
}
add_action( 'init', 'comment_support_for_my_custom_post_type' );
\ No newline at end of file
......@@ -46,6 +46,7 @@ $container = get_theme_mod( 'understrap_container_type' );
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'page' );
}
?>
......
......@@ -173,3 +173,11 @@ p{
}
#wpdcom{
max-width: unset !important;
}
#comments{
margin: 0px;
}
\ No newline at end of file
......