Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter irik

    (@irik)

    Thanks a lot, bcworkz ??
    My GA and Search Console configurations were made some years ago, and I think they are somewhat messy, so I’m considering to create a new fresh account with GA and Seach Console. Will this be unwise? Will this be bad for my SEO? (I need to sumbmit a new sitemap anyway, for my new site). Or should I try to “clean” up my existing configuration?

    Thread Starter irik

    (@irik)

    Looks like the problem is solved ?? I use the WP Rocket plugin, and I chose that the front page never should be cached, so I think that did the job.

    Thread Starter irik

    (@irik)

    I tried the things you suggested, but unfortunately, it didn’t work, so I have to ask my theme vendor. But thanks anyway! It’s much appreciated!

    Thread Starter irik

    (@irik)

    Fantastic! Thank you very much! It worked wonders:-) I noticed another post by you, where you mentioned Loco Translate. I’ve installed thins plugin, and I want to make my “Read More”-buttons have a Norwegian text, but in Loco Translate I noticed that “Read More” already was translated. So do you know what else I can do to thanslate the “Read More”-buttons? You can see the buttons here: https://testsidene.com/blogg/

    Thread Starter irik

    (@irik)

    Uups… didn’t know, thank you for helping me out ?? Hope you can see the code now …

    <?php
    
    // enqueue the child theme stylesheet
    
    Function wp_schools_enqueue_scripts() {
    wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css'  );
    wp_enqueue_style( 'childstyle' );
    }
    add_action( 'wp_enqueue_scripts', 'wp_schools_enqueue_scripts', 11);
    
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
     
    function custom_override_checkout_fields( $fields ) {
       
        unset($fields['billing']['billing_company']);
        
        unset($fields['billing']['billing_address_2']);
     
        unset($fields['billing']['billing_country']);
      
        unset($fields['billing']['billing_phone']);
        unset($fields['order']['order_comments']);
        unset($fields['billing']['billing_address_2']);
        
        unset($fields['billing']['billing_company']);
        
             		
        return $fields;
    }
    // removes Order Notes Title - Additional Information
    add_filter( 'woocommerce_enable_order_notes_field', '__return_false' );
    
    /**
     * Custom text on the receipt page.
     */
    function isa_order_received_text( $text, $order ) {
        $new = $text . ' Trykk p? <a href="https://testsidene.com/teoriprove-bil-klasse-b/">"teoripr?ver"</a> i menyen for ? sette i gang. Lykke til :-)';
        return $new;
    }
    add_filter('woocommerce_thankyou_order_received_text', 'isa_order_received_text', 10, 2 );
    Thread Starter irik

    (@irik)

    Thanks for your reply. Unfortunately, I’m quite new to woocommerce and coding. Can you please guide me? My checkout page looks like this: https://testsidene.com/shop/?add-to-cart=15967
    As you can see, I need some text to tell my users what kind of information they need to provide in the billing fields.

    I tried to copy you code in my functions file, but I get an php-error (maybe because I pasted it somewhere wrong, or maybe because I’ve already used some coding to get rid of excess billing fields. Maybe you spot an error somewhere? Here’s my code (functions.php of my child theme):

    <?php

    // enqueue the child theme stylesheet

    Function wp_schools_enqueue_scripts() {
    wp_register_style( ‘childstyle’, get_stylesheet_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘childstyle’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘wp_schools_enqueue_scripts’, 11);

    add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );

    function custom_override_checkout_fields( $fields ) {

    unset($fields[‘billing’][‘billing_company’]);

    unset($fields[‘billing’][‘billing_address_2’]);

    unset($fields[‘billing’][‘billing_country’]);

    unset($fields[‘billing’][‘billing_phone’]);
    unset($fields[‘order’][‘order_comments’]);
    unset($fields[‘billing’][‘billing_address_2’]);

    unset($fields[‘billing’][‘billing_company’]);

    return $fields;
    }
    // removes Order Notes Title – Additional Information
    add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’ );

    /**
    * Custom text on the receipt page.
    */
    function isa_order_received_text( $text, $order ) {
    $new = $text . ‘ Trykk p? “teoripr?ver” i menyen for ? sette i gang. Lykke til :-)’;
    return $new;
    }
    add_filter(‘woocommerce_thankyou_order_received_text’, ‘isa_order_received_text’, 10, 2 );

    Thread Starter irik

    (@irik)

    Ok. Thanks for the advice!

    Thread Starter irik

    (@irik)

    Thanks! It helped a lot, and I used it in connection with a plugin that disables the required-fields, but I still get an error: “Please provide a valid email adress”, so I ‘m not able to proceed with the payment…

    Thread Starter irik

    (@irik)

    I basically want to remove them all, but I want to preserve the “create account”-fields (mail and password”). How do I do this with CSS?

Viewing 9 replies - 16 through 24 (of 24 total)