• hello i use your plugin in combination with the flatsome theme. with the help of custom action the labels are displayed properly see settings and see example.

    but if I choose to keep a vertical product loop style from the theme then the labels are not placed over the image but in the text box of the product. sample

    how can i get the labels to be placed over each product photo by default using actions/hooks or shortcodes or php functions. in addition, the theme itself also has its own badge. or is there no way to replace the labels from your plugin with those from the theme?

    • This topic was modified 1 year, 11 months ago by Mati.

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

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Please try to change code snippet

    add_filter( 'awl_labels_hooks', 'my_awl_labels_hooks' );
    function my_awl_labels_hooks( $hooks ) {
        $hooks['on_image']['archive']['flatsome_product_box_tools_top'] = array( 'priority' => 10, 'js' => array( '.box-image', 'append' )  );
        return $hooks;
    }

    To something like

    add_filter( 'awl_labels_hooks', 'my_awl_labels_hooks' );
    function my_awl_labels_hooks( $hooks ) {
        if ( ! is_singular() ) {
            $hooks['on_image']['archive']['flatsome_product_box_tools_top'] = array( 'priority' => 10, 'js' => array( '.box-image', 'append' )  );
        }
        return $hooks;
    }
    Thread Starter Mati

    (@mattheus)

    now it is not correct on the homepage, but it is on the single product page. If you want you can log in to the website and I will create an account for you. otherwise we keep busy. maybe you can also fix the fix in the plugin update. because flatsome is one of the most used themes

    Thread Starter Mati

    (@mattheus)

    ?

    Plugin Author ILLID

    (@mihail-barinov)

    Did you try the latest plugin version ( 1.67 )? It contains a fix for your issue.?

    Thread Starter Mati

    (@mattheus)

    after the update i indicated to you that it is not fixed. after that you gave 2x new functions that half worked. but it is not resolved yet. I allow you to log in and solve this because flatsome is one of the best selling themes and several people use this combination.

    Plugin Author ILLID

    (@mihail-barinov)

    There was another new plugin version ( 1.67 ) on May 1. Did you try it?

    Thread Starter Mati

    (@mattheus)

    Plugin Author ILLID

    (@mihail-barinov)

    I see. On May 15 I will release a new plugin version that includes a fix for it. Please wait till Monday for it. This release will almost certainly solve your problem.

    Regards

    Thread Starter Mati

    (@mattheus)

    I have update the new version but still not fixed. otherwise I will give you access to the website so that you can solve the problem

    Plugin Author ILLID

    (@mihail-barinov)

    I see. In this case please write directly to [email protected]?

    Regards

    Thread Starter Mati

    (@mattheus)

    i have send you a e-mail

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘the labels are not displayed correctly on certain products’ is closed to new replies.