• Essie

    (@de-webconnectie)


    Hi,

    In this website the shortcode displays instead of the heart icon. This happend after migrating the website to another host. Website is fully updated, I’ve had all plugins disabled except for WC and YITH, but still the issue remains. Any idea what causes this?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Try adding the following code inside the functions.php file of your active child theme:

    if (defined('YITH_WCWL')) {
        if (!function_exists('yith_wcwl_enqueue_back_required_assets')) {
            function yith_wcwl_enqueue_back_required_assets()
            {
                $suffix  = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
                $version = defined('WC_VERSION') ? WC_VERSION : '';
    
                wp_enqueue_style('woocommerce_prettyPhoto_css', plugins_url('assets/css/prettyPhoto.css', WC_PLUGIN_FILE), array(), $version);
                wp_enqueue_script('prettyPhoto', plugins_url('assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE), array('jquery'), '3.1.6');
                wp_enqueue_script('prettyPhoto-init', plugins_url('assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE), array('jquery'), $version);
    
    
                wp_enqueue_style('yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array('jquery-selectBox'));
            }
            add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 9999 );
        }
        if (!function_exists('ywfav_add_fontawesome')) {
            function ywfav_add_fontawesome()
            {
                wp_enqueue_style('fontawsome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
            }
            add_action( 'wp_enqueue_scripts', 'ywfav_add_fontawesome', 99 );	
        }
    }

    Check it out and tell us any news, please.

    Best regards.

    Thread Starter Essie

    (@de-webconnectie)

    Hi Juan,

    Thanks for your speedy reply. I have added the script to the functions.php in the child theme, but unfortunately it has no effect.

    I hope you have a solution!

    Regards, Ester

    Thread Starter Essie

    (@de-webconnectie)

    Hi Juan,

    Client wants to know if there is progress in finding a solution for this issue?

    Thank you and regards,
    Ester

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi Essie,
    sorry for the delay.

    Do you have the complete code added in your theme’s functions.php file?

    I just tested it and it works fine.

    Maybe you should check how you are adding it in your theme, and if it really accepts shortcode as elements to add.

    We will be attentive to any news.

    Best regards.

    Thread Starter Essie

    (@de-webconnectie)

    Ah, there was more code than you gave me here. Yes, now it works, thank you.

    Now I have another issue… The fontsize of the number count is tied into the size of the icon. Can I decrease the size of the number font, to match it with the cart number size?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi Essie,

    I see that currently both counters look practically the same. Have you corrected it?

    You can modify the size of the counter by adding the following CSS under Appearance > Customize > Additional CSS:

    span.yith-wcwl-items-count i {
        font-size: 13px !important;
    }

    Let us know any news.

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘shortcode displays instead of icon’ is closed to new replies.