Page Condition
-
Hey Guys,
I’m still having some problems getting a link to show only on the specified page, I’ve tried two codes, but no luck, can anyone help me out with this one?
Code 1:
<?php if( is_page( 'Hot Deals') ) :?> <p style="text-align: justify;">Find affordable <a href="https://www.cheapcaribbean.com/" target="_blank"><span style="color: #3333ff;"><span style="text-decoration: underline;">all inclusive vacations</span></span></a> online today.</p>
Code 2:
<?php if( is_page( 'Hot Deals') ) { <p style="text-align: justify;">Find affordable <a href="https://www.cheapcaribbean.com/" target="_blank"><span style="color: #3333ff;"><span style="text-decoration: underline;">all inclusive vacations</span></span></a> online today.</p>}else{ }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Page Condition’ is closed to new replies.