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 = “”;
});
}
});
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!