Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Oberdick

    (@mike_oberdick)

    hmmm…the function is actually ‘wc_simple_product_badge_stylesheet’ so I’m not sure why it’s looking for ‘wc_simple_product_badge_style’. That would be why it isn’t being found. Did you go into the code of the ‘wc-simple-product-badge.php’ file and make changes?

    Thread Starter philrisk

    (@philrisk)

    No I just downloaded it and activated it.

    Plugin Author Mike Oberdick

    (@mike_oberdick)

    I also see that it’s looking in a file called ‘plugin.php’ and the name of the plugin file is ‘wc-simple-product-badge.php’. When you go into the WordPress dashboard is it showing as an installed plugin? Is it activated? Do you see the input fields for badge title, etc. in your WooCommerce product details?

    Thread Starter philrisk

    (@philrisk)

    Yes it all appears in the backend ok when activated. You just get that on the frontend.

    Plugin Author Mike Oberdick

    (@mike_oberdick)

    ok…let’s try to enqueue the style for it directly in your functions.php. Are you comfortable editing that file? If not, please do not attempt as it could cause issues with your site which will need to be fixed by accessing your site through FTP.

    Assuming that the plugin is installed in the ‘wp-content/plugins/’ directory the following code will enqueue the stylesheet. Add this to the end of your functions.php file.

    wp_enqueue_style( 'wc-simple-product-badge-style', plugins_url( 'wc-simple-product-badge/css/style.css' ) );

    Plugin Author Mike Oberdick

    (@mike_oberdick)

    Sorry about the issue…I updated the plugin to version 1.1 which includes the inclusion of a plugin directory constant which allows for the use of an absolute path to the plugin file. This will allow it to work on WordPress MU and is a best practice. Thanks for pointing this out for me. I hope that you will update and give it a shot! Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error in code’ is closed to new replies.