I do not quite understand why you are doing something in functions.php.
In my opinion, the right way is to make a special template for displaying the indicated pages. This can be done in two ways:
- If there is one unique page, copy the
page.php file to page.php page-{id}.php in the theme directory, where you substitute the page ID for {id} . - The most successful option. Copy
page.php with any convenient name that will be clear for you to identify a new template (for example template-contacts.php ). Inside this file, insert this comment: <?php /* Template Name: Страница контактов */ ?> (Of course, instead of the phrase "contact page" you can write something of your own). After that, in the content editor of the page you can select this template for any page you need.
After that, change the layout of the new template as you need.
Material on this topic:
- Creating your own page templates
- 3 ways to create a page template
Updated
If you want to hide some kind of block with styles, you can take into account that most of the themes usually add a page-id-{id} class to the body tag. Thus, you can add the following rule to the end of the style file:
.page-id-44 .conversion, .page-id-57 .conversion { display: none; }
Ps. Do not touch functions.php unnecessarily. As such, the layout should not be there.
single.phpevenhtmltags do not work out .. - Vasya