disqus
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
8 changed files
with
42 additions
and
12 deletions
| ... | @@ -14473,6 +14473,14 @@ h1 + p, .h1 + p { | ... | @@ -14473,6 +14473,14 @@ h1 + p, .h1 + p { |
| 14473 | border-bottom: 2px solid #3EAF49; | 14473 | border-bottom: 2px solid #3EAF49; |
| 14474 | } | 14474 | } |
| 14475 | 14475 | ||
| 14476 | #wpdcom { | ||
| 14477 | max-width: unset !important; | ||
| 14478 | } | ||
| 14479 | |||
| 14480 | #comments { | ||
| 14481 | margin: 0px; | ||
| 14482 | } | ||
| 14483 | |||
| 14476 | .collapsing { | 14484 | .collapsing { |
| 14477 | overflow: visible !important; | 14485 | overflow: visible !important; |
| 14478 | } | 14486 | } | ... | ... |
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'; | ... | @@ -12,6 +12,8 @@ include 'inc/blocks.php'; |
| 12 | include 'inc/shortcodes-resources.php'; | 12 | include 'inc/shortcodes-resources.php'; |
| 13 | include 'inc/menu.php'; | 13 | include 'inc/menu.php'; |
| 14 | include 'inc/shortcodes-contest.php'; | 14 | include 'inc/shortcodes-contest.php'; |
| 15 | include 'inc/shortcodes-disqus.php'; | ||
| 16 | |||
| 15 | 17 | ||
| 16 | 18 | ||
| 17 | /** | 19 | /** |
| ... | @@ -98,18 +100,7 @@ function understrap_child_customize_controls_js() { | ... | @@ -98,18 +100,7 @@ function understrap_child_customize_controls_js() { |
| 98 | add_action( 'customize_controls_enqueue_scripts', 'understrap_child_customize_controls_js' ); | 100 | add_action( 'customize_controls_enqueue_scripts', 'understrap_child_customize_controls_js' ); |
| 99 | 101 | ||
| 100 | 102 | ||
| 101 | require_once __DIR__.'/inc/filters.php'; | 103 | // require_once __DIR__.'/inc/filters.php'; |
| 102 | |||
| 103 | // add_action( 'template_redirect', 'redirect_to_specific_page' ); | ||
| 104 | |||
| 105 | // function redirect_to_specific_page() { | ||
| 106 | |||
| 107 | // if (! is_page('login') && !is_user_logged_in()) { | ||
| 108 | // wp_redirect(home_url()."/login/", 301 ); | ||
| 109 | // exit; | ||
| 110 | // } | ||
| 111 | // } | ||
| 112 | |||
| 113 | 104 | ||
| 114 | remove_action( 'um_logout_user_links', 'um_logout_user_links', 100 ); | 105 | remove_action( 'um_logout_user_links', 'um_logout_user_links', 100 ); |
| 115 | add_action( 'um_logout_user_links', 'um_logout_user_links_new', 100 ); | 106 | add_action( 'um_logout_user_links', 'um_logout_user_links_new', 100 ); | ... | ... |
| 1 | <?php | ||
| 2 | add_shortcode('disqus-thread', 'disqus_thread'); | ||
| 3 | |||
| 4 | |||
| 5 | function disqus_thread(){ | ||
| 6 | ob_start(); | ||
| 7 | if ( comments_open() || get_comments_number() ) { | ||
| 8 | comments_template(); | ||
| 9 | } | ||
| 10 | if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){ | ||
| 11 | include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php'; | ||
| 12 | } | ||
| 13 | |||
| 14 | wp_reset_query(); | ||
| 15 | $output = ob_get_clean(); | ||
| 16 | return $output; | ||
| 17 | } | ||
| 18 | |||
| 19 | function comment_support_for_my_custom_post_type() { | ||
| 20 | add_post_type_support( 'page', 'comments' ); | ||
| 21 | } | ||
| 22 | add_action( 'init', 'comment_support_for_my_custom_post_type' ); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -46,6 +46,7 @@ $container = get_theme_mod( 'understrap_container_type' ); | ... | @@ -46,6 +46,7 @@ $container = get_theme_mod( 'understrap_container_type' ); |
| 46 | while ( have_posts() ) { | 46 | while ( have_posts() ) { |
| 47 | the_post(); | 47 | the_post(); |
| 48 | get_template_part( 'loop-templates/content', 'page' ); | 48 | get_template_part( 'loop-templates/content', 'page' ); |
| 49 | |||
| 49 | } | 50 | } |
| 50 | ?> | 51 | ?> |
| 51 | 52 | ... | ... |
-
Please register or sign in to post a comment