• Resolved vital-generics

    (@vital-generics)


    I tried to seek assistance regarding this issue several days ago, but nobody seems to give a damn. If it’s not resolved I will have no other option but to uninstall the plugin and leave an adequate review of it.
    I’m using Divi and both main store and category pages have right sidebar by default. However, when you select any of the brands, the sidebar disappears (although some space on the right is still there). The plugin is useless if this issue is not resolved! Is there a css perhaps that can help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • It seems that I came up with a solution.

    The Divi theme adds a sidebar on the page that match the conditions in the function B. But this function does not account the taxonomy of brands. Therefore, you need to add one more condition.

    1) Open file themes/Divi/functions.php
    2) Find function et_divi_output_content_wrapper_end()
    3) Find condition ( is_shop() || is_product_category() || is_product_tag() )
    4) Add || is_tax( 'pwb-brand' ) before the closing bracket.

    So you get

    function custom_divi_output_content_wrapper_end() {
      echo '</div> <!-- #left-area -->';
    
      if (
        ( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
        ||
        ( ( is_shop() || is_product_category() || is_product_tag() || is_tax( 'pwb-brand' ) ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', 'et_right_sidebar' ) )
      ) {
        woocommerce_get_sidebar();
      }
    
      echo '
            </div> <!-- #content-area -->
          </div> <!-- .container -->
        </div> <!-- #main-content -->';
    }

    Please tell me if it helped you.

    Thread Starter vital-generics

    (@vital-generics)

    Thank you very much, Gleb. for reacting to my outcry.
    The thing is, however, I’m so scared now to edit the php files I don’t know what to do.. The last time I tried to modify the fuctions.php a fatal error occurred and it took me several days to regain control of the website and the dashboard.. Besides, I’m using the Candy Shop child theme and I’m not sure which function.php I should edit.. Can you help?
    Thanks again.
    Misha

    Misha, you can send me the fuctions.php from the Candy Shop child theme. I’ll try to help.
    [email protected]

    Thread Starter vital-generics

    (@vital-generics)

    Thank you very much, Gleb, for your willingness to help!
    I sent you an email.
    Thanks again.
    Misha

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar not showing in brand view’ is closed to new replies.