How to display text only on the main page. WordPress Сode e... open

How to display text only on the main page. WordPress Сode example

Approved. Code works!
This is exactly the working code that is verified by the moderator or site administrators

Show. only on the main page:

<?php if(is_front_page()) { ?>

My text or code here!

<?php } ?>

Show on all pages except the main:

<?php if(!is_front_page()) { ?>

My text or code here!

<?php } ?>
0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

How many?: 22 + 22

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation