• Resolved nikola797992

    (@nikola797992)


    You can see on the page I posted that there are 4 comments, but they can not be seen.
    You can leave comment there on the bottom of the page, and it will show comments number increasing but comments remain hidden. How to unlock them?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter nikola797992

    (@nikola797992)

    Thanks for helping ??
    We know what’s the problem now but I would like to keep the original theme.

    Stef

    (@serafinnyc)

    Yeah so keep it and look in the functions file of your theme. Probably a snippet there that’s not allowing it.

    Thread Starter nikola797992

    (@nikola797992)

    Stef

    (@serafinnyc)

    Well, that’s a start. We need to see what they are saying in those two files.

    Do you know how to comment out code?

    Thread Starter nikola797992

    (@nikola797992)

    Unfortunately no, but you can look the code here https://www.jumpmanual.org/technique/ click php

    Stef

    (@serafinnyc)

    Didn’t work. Take a screenshot of it. This might be something inside the themes options? That you can enable directly. Look in Customize for something related to comments. But you can post the code too.

    Thread Starter nikola797992

    (@nikola797992)

    So you clicked at the file I put on the page named php?

    Thread Starter nikola797992

    (@nikola797992)

    And I have 2 errors in theme style.css (There are 2 errors which must be fixed before you can update this file. Update anyway, even though it might break your site?)
    but I doubt this blocks comments.
    I put the code inside php file on the page I gave you but I’ll put the code here since I am going to sleep so I’ll delete the file.

    This is the code for functions theme-scripts.php

    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    if ( !class_exists( ‘tws_themesScripts’ ) ) :

    class tws_themesScripts{

    function __construct(){

    add_action( ‘init’, array( $this, ‘register_scripts’ ));

    add_action( ‘wp_enqueue_scripts’, array( $this , ‘enqueue_styles’ ) , 1 );

    add_action(‘wp_enqueue_scripts’, array( $this , ‘enqueue_scripts’ ));

    }

    /* Registers all scripts
    *
    * @access public
    * @return void
    */
    function register_scripts(){
    wp_register_style( ‘tws-opensans’, ‘//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic’ , array(), ‘1.0’ , false );
    wp_register_style( ‘tws-montserrat’, ‘//fonts.googleapis.com/css?family=Montserrat:400,700’ , array(), ‘1.0’ , false );

    wp_register_script(‘easing’, get_template_directory_uri().’/js/jquery.easing.1.3.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘hover’, get_template_directory_uri().’/js/hoverIntent.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘commentvaljs’, get_template_directory_uri().’/js/jquery.validate.pack.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘commentval’, get_template_directory_uri().’/js/comment-form-validation.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘selectnav’, get_template_directory_uri().’/js/jquery.navgoco.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘selectmenu’, get_template_directory_uri().’/js/selectnav.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘modernizr’, get_template_directory_uri().’/js/modernizr.custom.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘classie’, get_template_directory_uri().’/js/classie.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘overlay’, get_template_directory_uri().’/js/overlay.js’, array(‘jquery’),’1.0′, true );
    wp_register_script(‘owlsettingsoverride’, get_template_directory_uri().’/js/jquery.owlsettings.js’, array(‘jquery’),’1.0′, true );
    }

    /**
    * Enqueue Theme Styles
    *
    * @since 1.0
    * @access public
    * @return void
    */
    function enqueue_styles() {
    if (is_admin()) {
    return;
    }

    if (!is_admin()) {
    //Load the main style.css
    wp_enqueue_style( ‘tws-opensans’ );
    wp_enqueue_style( ‘tws-montserrat’ );
    }
    }

    /**
    * Enqueue all frontend scripts
    *
    * @since 1.0
    * @access public
    * @return void
    */

    function enqueue_scripts() {
    if (is_admin()) {
    return;
    }

    // If we’re not in admin, lets do fun stuff
    if (!is_admin()){
    wp_enqueue_script( ‘jquery’);
    wp_enqueue_script( ‘easing’ );
    wp_enqueue_script( ‘owlsettingsoverride’ );
    wp_enqueue_script( ‘hover’ );
    wp_enqueue_script( ‘commentvaljs’ );
    wp_enqueue_script( ‘commentval’ );
    wp_enqueue_script( ‘selectnav’ );
    wp_enqueue_script( ‘selectmenu’ );
    wp_enqueue_script( ‘modernizr’ );
    wp_enqueue_script( ‘classie’ );
    wp_enqueue_script( ‘overlay’ );
    }

    }

    }//end class

    endif;

    $tws_themes_scripts = new tws_themesScripts();

    ?>

    • This reply was modified 5 years, 6 months ago by nikola797992.
    Stef

    (@serafinnyc)

    Sorry. I need to see the comment js file not any php.

    Yes, there was no click on that page.

    Thread Starter nikola797992

    (@nikola797992)

    My js files are arranged like this

    js folder
    classie.js
    comment-form-validation.js
    hoverIntent.js
    jquery.easing.1.3.js
    jquery.navgoco.js
    jquery.owlsettings.js
    jquery.validate.pack.js
    modernizr.custom.js
    overlay.js
    selectnav.js

    And here’s the code from comment-form-validation.js

    jQuery(function($) {
    var errorContainer = $(“<div class=’error’>Validation errors occurred. Please confirm the fields and submit it again.</div>”).appendTo(“#commentform”).hide();
    var errorLabelContainer = $(“<div class=’error errorlabels’></div>”).appendTo(“#commentform”).hide();
    $(“#commentform”).validate({
    rules: {
    author: “required”,
    email: {
    required: true,
    email: true
    },
    url: “url”,
    comment: “required”
    },
    errorContainer: errorContainer,
    errorLabelContainer: errorLabelContainer,
    ignore: “:hidden”
    });
    $.validator.messages.required = “”;
    $.validator.messages.email = “» ” + $.validator.messages.email;
    $.validator.messages.url = “» ” + $.validator.messages.url;
    });

    Stef

    (@serafinnyc)

    Yeah that’s not anything either. I’d say all the theme developer since your using a premium paid theme. But I saw his comments to his customers on themeforest and got scared for my own safety. That guy isn’t nice.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Comments on WooCommerce pages’ is closed to new replies.