• I’ve updated the function.php file using file manager, o remove “description” text in the product description in a theme (Astra). I did this because I wasn’t able to see an editor link under the ‘Appearance’ tab. Now I can’t access the site on through the admin site either.

    Wordpress 5.2.4

    // Remove the product description Title
    add_filter( 'woocommerce_product_description_heading', 'remove_product_description_heading' );
    function remove_product_description_heading() {
     return '';
    }
    
    // Change the product description title
    add_filter('woocommerce_product_description_heading', 'change_product_description_heading');
    function change_product_description_heading() {
     return __('NEW TITLE HERE', 'woocommerce');
    }
    // Remove the additional information title
    function remove_additional_information_heading() {
    	return '';
    }
    add_filter( 'woocommerce_product_additional_information_heading', 'remove_additional_information_heading' );
    // Change the additional information title
    function change_additional_information_heading() {
        return __('NEW TITLE HERE', 'woocommerce');
    }
    add_filter( 'woocommerce_product_additional_information_heading', 'change_additional_information_heading' );
    .woocommerce-Reviews .woocommerce-Reviews-title{
      display: none;
    }

    Help…

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

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Download a fresh copy of your theme. Extract its functions.php file and upload to your site via FTP or through the file manager app of your hosting control panel, replacing the one you edited.

    You seem to have put a mix of PHP and CSS in the file, and that’s wrong.

Viewing 1 replies (of 1 total)
  • The topic ‘The site is experiencing technical difficulties.’ is closed to new replies.