• I’ve added the following code to my sidebar using the Thesis Openhook plugin, but cannot seem to get the images to pull in. Any suggestions as to why?

    note: The pathing is correct.

    <?php
    if ( is_page('about')) {
    <img src="wp-content/themes/thesis_151/custom/images/aboutImage.png" alt="About Image"/>
    } elseif ( is_page('home'){
    <img src="wp-content/themes/thesis_151/custom/images/homeImage.png" alt="Home Image"/>
    } elseif ( is_page('services'){
    <img src="wp-content/themes/thesis_151/custom/images/servicesImage.png" alt="Services Image"/>
    }
    ?>
Viewing 1 replies (of 1 total)
  • Thread Starter rjpowers

    (@rjpowers)

    Bump. Please help.
    The Alt tag text shows up so it is firing correctly.

    If I change the is_page to is_home, the image shows up on the home page.
    What’s up with the is_page tag?

Viewing 1 replies (of 1 total)
  • The topic ‘Openhook Conditional Tag Problem in Sidebar’ is closed to new replies.