How do I remove parts of the html document using functions.php


I’m an absolute php beginner. I’ve got a website which can be accessed through two domains, one of which I’m trying to white label (by removing the Page Speed Pro header, footer, comments, and sidebar if the domain matches docs.share…

I’m trying to use functions.php to remove these parts but I can’t figure out how to identify the tag and function in <?php remove_action( $tag , $function_to_remove , $priority ); ?>

Any help would be greatly appreciated! :slight_smile:

Unfortunately those are not added by hooks. So it is not possible to remove them.
You can create a child theme, and use that theme for the white labeled domain.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.