Viewing 1 replies (of 1 total)
  • C W (VYSO)

    (@cyril-washbrook)

    At the relevant point in the theme template, something like this:

    <?php
       if( is_page( array( 1, 2, 3 ) ) ) :
          $img_link = "https://www.example.com/test";
       else :
          $img_link = "https://www.example.com";
       endif;
    ?>
    <a href="<?php echo $img_link; ?>"><img src="hello-world.png" width="400" height="400" alt="Hello world" /></a>

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Conditions’ is closed to new replies.