Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter arzubrov

    (@arzubrov)

    No, you do not understand, I will explain again

    I am using 2 plugins

    1) YITH Color and Label variations for WooCommerce
    2) YITH WooCommerce Ajax Product Filter

    In the new version of the plugin YITH Color and Label variations for WooCommerce
    color swatches only show on product page
    In the sidebar using the YITH WooCommerce Ajax Product Filter, color swatches are not displayed and in order to be displayed, you need to go to the widgets and the YITH WooCommerce Ajax Product Filter widget, you need to re-select the attribute color swatches only then to be displayed in the sidebar

    How do I want to nest a plugin inside a theme?

    I have already decided this question, I will not do this, I wrote the code for installation from directly wordpress.org and added a plugin that rolls back the version of the plugin, that is, to 1.9.9

    Thread Starter arzubrov

    (@arzubrov)

    Due to an error, I wanted to load this plugin inside the theme folder, but as it turned out, the problem is in the plugin YITH Color and Label variations for WooCommerce

    For more details I wrote in Support YITH Color and Label variations for WooCommerce

    Thread Starter arzubrov

    (@arzubrov)

    The problem is that after the update, the plugin deteriorated, version 1.9.9 was excellent, but you updated it did not work correctly
    for example: after adding a new color, you need to go to the widgets in the YITH WooCommerce Ajax Product Filter and there you need to re-select the color to appear in the sidebar
    in the old version 1.9.9 there was no such thing

    I thought there was a problem with both plugins but it turned out to be only YITH Color and Label variations for WooCommerce

    Thread Starter arzubrov

    (@arzubrov)

    Your plugin does not have a translation, I would like to translate it and put it in the theme folder that I will sell.

    Thread Starter arzubrov

    (@arzubrov)

    Hello, you helped a lot, I tried on a different theme (template), everything worked, thanks a lot.

    Now there is 1 problem left after import, I would like to automatically select Home and blog page, I found the code but don’t know how to apply my pages
    Homepage URL (home-1)
    Blog Page URL (Blog-1)

    How to add these pages to this code

    function ocdi_after_import_setup() {
        // Assign menus to their locations.
        $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' );
     
        set_theme_mod( 'nav_menu_locations', [
                'main-menu' => $main_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function in your theme.
            ]
        );
     
        // Assign front page and posts page (blog page).
        $front_page_id = get_page_by_title( 'Home' );
        $blog_page_id  = get_page_by_title( 'Blog' );
     
        update_option( 'show_on_front', 'page' );
        update_option( 'page_on_front', $front_page_id->ID );
        update_option( 'page_for_posts', $blog_page_id->ID );
     
    }
    add_action( 'ocdi/after_import', 'ocdi_after_import_setup' );
Viewing 5 replies - 1 through 5 (of 5 total)