Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Awais

    (@imawais)

    Thank you for your response threadi. Here is the code which works well with wordpress 5.8 but does not work after WP 5.9 Update.

    /**
    * Add custom color palette in Block editor.
    */
    function my_gutenberg_color_palette() {
    add_theme_support(
    ‘editor-color-palette’, array(
    array(
    ‘name’ => esc_html__( ‘Pink’, ‘@@textdomain’ ),
    ‘slug’ => ‘modified-pink’,
    ‘color’ => ‘#ff698f’,
    ),
    array(
    ‘name’ => esc_html__( ‘Green’, ‘@@textdomain’ ),
    ‘slug’ => ‘modified-green’,
    ‘color’ => ‘#009705’,
    ),
    array(
    ‘name’ => esc_html__( ‘Gray’, ‘@@textdomain’ ),
    ‘slug’ => ‘modified-gray’,
    ‘color’ => ‘#a8aaaa’,
    ),
    array(
    ‘name’ => esc_html__( ‘Blue’, ‘@@textdomain’ ),
    ‘slug’ => ‘modified-blue’,
    ‘color’ => ‘#0412cc’,
    ),
    array(
    ‘name’ => esc_html__( ‘Pale pink’, ‘@@textdomain’ ),
    ‘slug’ => ‘pale-pink’,
    ‘color’ => ‘#f78da7’,
    ),
    array(
    ‘name’ => esc_html__( ‘Vivid red’, ‘@@textdomain’ ),
    ‘slug’ => ‘vivid-red’,
    ‘color’ => ‘#cf2e2e’,
    ),
    array(
    ‘name’ => esc_html__( ‘Luminous vivid orange’, ‘@@textdomain’ ),
    ‘slug’ => ‘luminous-vivid-orange’,
    ‘color’ => ‘#ff6900’,
    ),
    array(
    ‘name’ => esc_html__( ‘Luminous vivid amber’, ‘@@textdomain’ ),
    ‘slug’ => ‘luminous-vivid-amber’,
    ‘color’ => ‘#fcb900’,
    ),
    array(
    ‘name’ => esc_html__( ‘Light green cyan’, ‘@@textdomain’ ),
    ‘slug’ => ‘light-green-cyan’,
    ‘color’ => ‘#7bdcb5’,
    ),
    array(
    ‘name’ => esc_html__( ‘Vivid green cyan’, ‘@@textdomain’ ),
    ‘slug’ => ‘vivid-green-cyan’,
    ‘color’ => ‘#00d084’,
    ),
    array(
    ‘name’ => esc_html__( ‘Pale cyan blue’, ‘@@textdomain’ ),
    ‘slug’ => ‘pale-cyan-blue’,
    ‘color’ => ‘#8ed1fc’,
    ),
    array(
    ‘name’ => esc_html__( ‘Vivid cyan blue’, ‘@@textdomain’ ),
    ‘slug’ => ‘vivid-cyan-blue’,
    ‘color’ => ‘#0693e3’,
    ),
    array(
    ‘name’ => esc_html__( ‘Vivid purple’, ‘@@textdomain’ ),
    ‘slug’ => ‘vivid-purple’,
    ‘color’ => ‘#9b51e0’,
    ),
    array(
    ‘name’ => esc_html__( ‘Very light gray’, ‘@@textdomain’ ),
    ‘slug’ => ‘very-light-gray’,
    ‘color’ => ‘#eeeeee’,
    ),
    array(
    ‘name’ => esc_html__( ‘Cyan bluish gray’, ‘@@textdomain’ ),
    ‘slug’ => ‘cyan-bluish-gray’,
    ‘color’ => ‘#abb8c3’,
    ),
    array(
    ‘name’ => esc_html__( ‘Very dark gray’, ‘@@textdomain’ ),
    ‘slug’ => ‘very-dark-gray’,
    ‘color’ => ‘#313131’,
    )
    )
    );
    }
    add_action( ‘after_setup_theme’, ‘my_gutenberg_color_palette’, 999 );

    add_action( ‘enqueue_block_editor_assets’, ‘my_guten_enqueue’, 999 );
    function my_guten_enqueue() {
    wp_enqueue_style(
    ‘my_guten-style’,
    get_stylesheet_directory_uri() . ‘/mycustomcolors.css’,
    null,
    ‘1.0.3’
    );
    }

    /* code for enqueued mycustomcolors.css file*/

    .has-modified-pink-background-color {
         background-color: #ff698f !important;
     }
    .has-modified-pink-color {
         color: #ff698f !important;
    }
    
    .has-modified-green-background-color {
         background-color: #009705 !important;
    }
    .has-modified-green-color {
         color: #009705 !important;
    }
    
    .has-modified-blue-background-color {
         background-color: #0412cc !important;
     }
    .has-modified-blue-color {
         color: #0412cc !important;
    }
    
    .has-modified-gray-background-color {
         background-color: #a8aaaa !important;
     }
    .has-modified-gray-color {
         color: #a8aaaa !important;
    }
    • This reply was modified 2 years, 9 months ago by Awais.
    Thread Starter Awais

    (@imawais)

    Hi!
    Is there any update regarding this whether it’s possible or not?
    Thanks!

    Thread Starter Awais

    (@imawais)

    ok Great! ??

    Thread Starter Awais

    (@imawais)

    I understand. Thank you very much! ??

    Just asking, is there a possibility that Livemesh can support skin created with “Elementor Custom Skin Plugin” as well apart from skin created with “Livemesh item” for its post carousel and grid widgets?
    So, if the user wants to use skin created with “Elementor Custom Skin Plugin” for Livemesh widgets, he will be able to do so.

    Thank you!

    Thread Starter Awais

    (@imawais)

    Ok great! I just saw your replies which were not appearing before although the topic was appearing as resolved. Now I’m marking the topic as resolved.
    Thank you!

    Thread Starter Awais

    (@imawais)

    Hi!
    I updated the Plugin but this issue is still there.
    Thank you!

    Thread Starter Awais

    (@imawais)

    Great! Thank you very much! ??

    Thread Starter Awais

    (@imawais)

    Hi!
    Thank you for your response. Unfortunately, I do not have a working example of subvariations as a dropdown. I was able to do something closer using Jquery although it does not show as a dropdown.
    Thank you!

    Thread Starter Awais

    (@imawais)

    I have solved my problem my duplicating the front page. There was not anything working so I tried this. However, I would like to hear the proper way of dealing with this problem from plugin support.
    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)