• Good morning:
    First of all, say that your product is great and works like a charm.

    I only have a problem with the final style; The selection box presents a style element that I cannot modify, specifically this one:

    “<div class=”options per-row-1 ” style=”width: 75% !important;”><div”

    and it looks a little strange, because the rest of the plugin and the cart look 100%

    Can it be changed in any way?

    Thank you so much.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Vanesa

    (@vanesarodriguez)

    Hi!
    I hope you are well and thanks for your comments ??

    Could you, please, be a little more specific or share a example of the element you would like to change?
    That way we could undertand it better and try to help you.

    Thanks in advance!
    We remain at your disposal.

    MC

    (@moscomes)

    I use JS to solve this. Not the best solution, but for my specific case I didn’t want to make a modified template.

    However, I also have mentioned this inline-style problem to YITH months ago

    @fredywd

    document.addEventListener(“DOMContentLoaded”, function() {
    if (document.body.classList.contains(‘*IF*SPECIFIC*PAGE*_*PLACE*BODY*CLASS*HERE*’)) {
    document.querySelectorAll(“.yith-wapo-block [style*=’width: 75% !important;’]”).forEach(function(element) {
    element.style.width = “”;
    });
    }
    });

    Plugin Support Pablo Pérez

    (@pperez001)

    Hi!

    The option to further customize this element can be found in the premium version. However, to just change the width, you can use the following code:

    if( ! function_exists('yith_wapo_edit_width_formatted_settings')){

    add_filter('yith_wapo_get_formatted_settings', 'yith_wapo_edit_width_formatted_settings');

    function yith_wapo_edit_width_formatted_settings($formatted_settings){

    $formatted_settings['select_width'] = 50;

    return $formatted_settings;
    }

    }

    You can edit the code set the value that you need. Then you just have to include the code in the function.php of your theme.

    Have a great day to both!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.