Support Forum

Home Forums OceanPlaza WP Theme Doesn't Declare WooCommerce Support

All Wordpress Themes

Tagged: 

This topic contains 10 replies, has 3 voices, and was last updated by  Support Team 1 4 years ago.

  • Author
    Posts
  • #495

    evrmrk
    Participant

    I have v2.1 installed but I still get the notification, “Your theme does not declare WooCommerce support” even though I purchased your theme with the understanding that it’s already WooCommerce integrated. How do I resolve this?

  • #668

    Support Team 1
    Keymaster

    Hello, evrmrk!
    To remove this problem you should
    1) access Appearance > Editor
    2) locate the functions.php file
    3) add the following code at the very end of the file, just before the closing PHP Tag ?>

    add_theme_support(‘woocommerce’);

    Сode shall be as follows:
    <?php
    add_action( ‘after_setup_theme’, ‘mytheme_after_setup_theme’ );
    if ( ! function_exists( ‘mytheme_after_setup_theme’ ) ){
    function mytheme_after_setup_theme() {
    // Add support for woocommerce
    add_theme_support( ‘woocommerce’ );
    }
    }
    ?>

    4) save the changes.

  • #8612

    Adeline
    Participant

    Hi there,
    I’ve been having the same message “Your theme does not declare WooCommerce support” Should I do the same as you wrote above?

    Thanks in advance,

    Best Regards,

    • #8613

      Support Team 1
      Keymaster

      Hello, Adeline! Yes, try to make the same actions!

    • #8620

      Support Team 1
      Keymaster

      Adeline, sorry for delay.
      If I don’t mistake, you can ignore this message. Because Function.php already has this code http://prntscr.com/4p78ix. And now it is unnecessary to add it. Sorry, it is my mistake.
      I’ll cunsult with our specialist ASAP. And then we’ll contact you.

  • #8614

    Adeline
    Participant

    Alright, thank you 🙂

  • #8616

    Adeline
    Participant
    This reply has been marked as private.
  • #8618

    Adeline
    Participant
    This reply has been marked as private.
  • #8621

    Adeline
    Participant

    ok no problem, thanks for your help. 😉

    • #10137

      Support Team 1
      Keymaster

      Hello, Adeline! I apologize for my very late reply. You shoul to add this string add_theme_support('woocommerce'); to functions.php after this string add_theme_support('automatic-feed-links'); http://prntscr.com/4vrxq0.
      So you need to get this code

      if (function_exists('add_theme_support')) {
          add_theme_support('automatic-feed-links');
          add_theme_support('woocommerce');

      See screenshot http://prntscr.com/4vrzhl.

The topic ‘Theme Doesn't Declare WooCommerce Support’ is closed to new replies.