krlaboratories

how displaying web code only on frontpage in WP

Oct 30th, 2021 (edited)
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.09 KB | None | 0 0
  1. <?php if ( is_front_page() ) {
  2. echo('
  3. <H1>Header</H1>
  4. ');
  5. } else {
  6.    echo('');
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment