Hello. With a creak I comprehend the basics of php and here: added support for a custom sidebar on the page
if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Футер на странице записи', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<div class="title">', 'after_title' => '</div>', ));
and add it to the footer:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Футер на странице записи") ) : ?>
in principle, everything is fine and works, but how to add a check here, is the page the main one (execute if it is not), or is it at least a single page (execute if yes)? I, like, found all this, help to complete, please. Here is a check on the main page
if( is_front_page() ){ } else { // не главная }
but on a separate post
is_single();