Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Selvam, according to the code in your pastebin you have two opening php tags. Removing the one on line 8 should solve your problem. The code looks good, so I think it’s only the <?php tag on line 8.

    Let me know if this helped.

    Regards

    Ernest CLose

    Thread Starter vamban

    (@vamban)

    When use this code https://pastebin.com/Hwgmfsfx

    Got another error

    Warning: Cannot modify header information – headers already sent by (output started at /home/wpdiv/public_html/demosite/wp-content/themes/wpdiv/functions.php:31) in /home/wpdiv/public_html/demosite/wp-includes/pluggable.php on line 1121

    Will you please test personally this code and revert please?

    Hi Selvam, in you functions.php page remove that code and use this code instead:
    for the js.

    add_action( 'wp_print_scripts', 'deregister_cf7_javascript', 100 );
    function deregister_cf7_javascript() {
        if ( !is_page(100) ) {
            wp_deregister_script( 'contact-form-7' );
        }
    }

    for the css.

    add_action( 'wp_print_styles', 'deregister_cf7_styles', 100 );
    function deregister_cf7_styles() {
        if ( !is_page(100) ) {
            wp_deregister_style( 'contact-form-7' );
        }
    }

    in both functions change 100 for the id of your contact page or use the slug of the contact page. If you have more than one page with forms on them you can add the ID’s or slugs like this. (100,101) or (100,’contact-us’)

    Let me know if this worked.

    Regards

    Ernest Close

    Thread Starter vamban

    (@vamban)

    @ernestclose

    Works like charm and great thanks to your code.

    Will you please clarify me why the previous code does not works?

    Hi Selvam, I’m glad it worked. The other code tried to modify the header information after it was already set. Moving that code to the theme or contact form might have worked or setting it directly on wp-config.php would solve that problem, but I’d rather not mess with that.

    Regards

    Ernest Close

    Thread Starter vamban

    (@vamban)

    That’s perfect,

    Let me have another 3 questions regarding hueman theme.

    1. How can i swap the sidebars in the hueman theme. But there is no options in theme options. aka primary sidebar in right and secondary sidebar in left

    Will it possible to add such option in theme options page?

    2. Second question is, when setup alx widgets, its showing scaled original images and it does makes more page weight. Will it be possible to show resized images to load page faster?

    3. I am using 3 footer widgets in this theme. When i add some content in footer text widgets with link, the href tag applied to third widget also and if i add fontawesome icons in widget title, it breaks the footer completely.

    Please help in this regard

    Always a pleasure.
    As for points 1-3 you’ll have to ask the theme author. I’ve never used this theme myself, only helped customize some css for a couple of people here on the forum. Sorry I could not help you with that.

    Regards

    Ernest Close

    Thread Starter vamban

    (@vamban)

    Thanks for your reply

    anyway happy weekend ahead of you.

    Thank you, and same for you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hueman Child Theme Generating Error’ is closed to new replies.