• Resolved renderartwork

    (@renderartwork)


    I’ve just installed portfolio gallery, but when i try to activate it, I receive this error message.

    Parse error: syntax error, unexpected T_FUNCTION in /home/content/31/2084131/html/RAW/wp-content/plugins/Total-Soft-Portfolio/index.php on line 13

    Maybe you should know that i am new to wordpress and that i have it running on a server, not from their website.

    If maybe you know what usually causes this error, that would help me a lot.

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello Dear @renderartwork.

    Thank You for contacting with us and for saying us about your problem. On that row you have this function:

    add_action(‘wp_enqueue_scripts’,function() {
    wp_register_style(‘Total_Soft_Portfolio’, plugins_url(‘/CSS/Total-Soft-Portfolio-Widget.css’,__FILE__ ));
    wp_register_style(‘Total_Soft_Portfolio2’, plugins_url(‘/CSS/Filt_popup.min.css’,__FILE__ ));
    wp_enqueue_style(‘Total_Soft_Portfolio’);
    wp_enqueue_style(‘Total_Soft_Portfolio2’);
    wp_register_script(‘Total_Soft_Portfolio’,plugins_url(‘/JS/Total-Soft-Portfolio-Widget.js’,__FILE__),array(‘jquery’,’jquery-ui-core’));
    wp_localize_script(‘Total_Soft_Portfolio’, ‘object’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));
    wp_enqueue_script(‘Total_Soft_Portfolio’);
    wp_enqueue_script(“jquery”);
    wp_register_style(‘fontawesome-css’, plugins_url(‘/CSS/totalsoft.css’, __FILE__));
    wp_enqueue_style(‘fontawesome-css’);
    });

    Please edit the plugin and replace that function with this:

    add_action(‘wp_enqueue_scripts’, ‘TotalSoft_PG_Widget_Style’);
    function TotalSoft_PG_Widget_Style()
    {
    wp_register_style(‘Total_Soft_Portfolio’, plugins_url(‘/CSS/Total-Soft-Portfolio-Widget.css’,__FILE__ ));
    wp_register_style(‘Total_Soft_Portfolio2’, plugins_url(‘/CSS/Filt_popup.min.css’,__FILE__ ));
    wp_enqueue_style(‘Total_Soft_Portfolio’);
    wp_enqueue_style(‘Total_Soft_Portfolio2’);
    wp_register_script(‘Total_Soft_Portfolio’,plugins_url(‘/JS/Total-Soft-Portfolio-Widget.js’,__FILE__),array(‘jquery’,’jquery-ui-core’));
    wp_localize_script(‘Total_Soft_Portfolio’, ‘object’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));
    wp_enqueue_script(‘Total_Soft_Portfolio’);
    wp_enqueue_script(“jquery”);
    wp_register_style(‘fontawesome-css’, plugins_url(‘/CSS/totalsoft.css’, __FILE__));
    wp_enqueue_style(‘fontawesome-css’);
    }

    It will solve your problem.

    Thank You.

Viewing 1 replies (of 1 total)
  • The topic ‘can’t activate portfolio gallery plugin’ is closed to new replies.