• Resolved kreartmedia

    (@kreartmedia)


    When I switch to english, the options of the “Design Options” tab of WPBakery page builder such as custom paddings, margins, borders, background, etc., don’t work anymore. Normally, WPBakery creates a unique ID for each row and column and places it in a class named .vc_custom_1716147219073 (The number is the ID). I was able to see that when I switch to english, the number that applies is diferent, as tough both numbers are in the class of the row.

    WPML seems to have a similar issue and here is their fix : https://total.wpexplorer.com/docs/wpbakery-wpml-css-fix/

    You don’t have the same type of options in your plugins, but I figured maybe it could help you understand where the issue is coming from.

    This is super important that it works, because it changes all the website design. Thank you for your help !

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kreartmedia

    (@kreartmedia)

    Another detail, I’m using the plugin on other websites with WPBakery and that doesn’t cause any problem

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for reaching us!

    Did you use any conditional on that tab?

    Also,what you can do is to exclude that selector from being translated by using the “Exclude selectors from dynamic translation”.

    Try this and let me know!

    Kind Regards,

    Thread Starter kreartmedia

    (@kreartmedia)

    I did a lot of troubleshooting and here are the results :

    1- I tried to put the same selector ?in the?Exclude selectors from dynamic translation as you suggested,? but it didn’t work.

    1- It occurs only when I update the theme and WP Bakery from 6.13.0 to ?7.6??

    2- If I install the plugin and don’t change anything in the content, the Design options work, but I soon as I make a change and save it, the Design options stop working on the translated page only.

    3- I looked at the versions of the post and if seems that the .vs_custom change number when I save it.

    4- I tried disabling all type of cache and it didn’t work

    5- I tried to erase all TranslatePress database and reinstall it, it didn’t work.

    At this point, I don’t know what to do.

    Spinrag

    (@spinrag)

    I’ve also updated my WPbakery to 7.6 and dealing with some sort of the same problem. When I make changes to some css settings of rows or elements (like spacings, bg image, etc), it breaks on the frontend. When I disable Translatepress, everything works fine…

    Thread Starter kreartmedia

    (@kreartmedia)

    TranslatePress Premium gave me the fix. Here it is :

    This is a bug inside WP Bakery. Instead of esc_html they use esc_html__ , a gettext function inside public function get_shortcodes_css( $id, $type ) found in wp-content\plugins\js_composer\include\classes\core\class-vc-base.php Go to that file on your server and modify the function to be like so:

    public function get_shortcodes_css( $id, $type ) { $is_updated = get_metadata( ‘post’, $id, ‘_wpb_shortcodes_’ . esc_html( $type ) . ‘_css_updated’, true ); if ( empty( $is_updated ) ) { $this->buildShortcodesCss( $id, $type ); } $shortcodes_css = get_metadata( ‘post’, $id, ‘_wpb_shortcodes_’ . esc_html( $type ) .’_css’, true ); return apply_filters( ‘vc_shortcodes_’. esc_html( $type ) . ‘_css’, $shortcodes_css, $id ); }

    This will fix the issue.

    Thread Starter kreartmedia

    (@kreartmedia)

    Line 596, you have to erase the underscore after esc_html in the 3 occurences of this function.

    toulip

    (@toulip)

    Hello that fix from above worked for me as well.

    However, do we know if WPBakery is going to fix this? Or can TranslatePress provide a more robust solution through their code? It is so frustrating applying that same fix every time we make updates on the websites.

    Thanks in advance,

    George!

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