• I am using a plugin on Woocommerce which allows me to add Brands. I was trying to hide the brand on the product screen similar to what I have dome with Category and SKU. The code I used (which didnt work) now shows up at the top of the CMS on every page and seems to be causing problems when I am trying to upload products using CSV Import….

    When on WordPress CMS and right click – view source, i see at the top…

    add_filter( 'pwb-single-product-brands', _'return_false')<!DOCTYPE html>
    <!--[if IE 8]>
    <html xmlns="https://www.w3.org/1999/xhtml" class="ie8 wp-toolbar" lang="en-US">
    <![endif]-->
    <!--[if !(IE 8) ]><!-->
    <html xmlns="https://www.w3.org/1999/xhtml" class="wp-toolbar" lang="en-US">
    <!--<![endif]-->
    <head>
    Can someone help me get rid of the add_filter( 'pwb-single-product-brands', _'return_false')

    at the start I have no idea which php script to look at thanks in advance

    I have an image but not sure how to uploade

    on the top left corner of CMS (on every page) it says – add_filter( ‘pwb-single-product-brands’, _’return_false’)

    I would love it if someone could give me an idea as to what php script it may be in to be showing here

    https://stackoverflow.com/questions/45028692/remove-code-from-wordpress-cms-script/45028741#45028741

    posted question on stackoverflow which shows picture

    • This topic was modified 7 years, 8 months ago by paulmcf87.
    • This topic was modified 7 years, 8 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • You said it was the “code I used” — do you not remember where you put it?

    It perhaps was in your functions.php file, but there are other possibilities.

    The reason for the issue is that you don’t have that PHP code inside of PHP tags. It should look more like this:

    <?php
    add_filter( ‘pwb-single-product-brands’, _’return_false’);
    ?>

    Whereas you just have it naked, so it’s not executing.

Viewing 1 replies (of 1 total)
  • The topic ‘Unwanted text appeared in CMS’ is closed to new replies.