Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I tried using the code below and uploaded some images with the relevant file names into the themes image folder …

    <?php
    $post_obj = $wp_query->get_queried_object();
    $slug = $post_obj->post_name;
    if($slug == “about”){
    echo “<img src=\”about-header.jpg\”>”;
    }
    else if($slug == “contact”){
    echo “<img src=\”contact-header.jpg\”>”;
    }
    else if($slug == “news”){
    echo “<img src=\”news-header.jpg\”>”;
    }
    else{
    echo “<img src=\”default-header.jpg\”>”;
    }
    ?>

    It didn’t work in WordPress 2.7 so I guess you have to disable the following file somehow?

    wp-content/themes/default/header-image.php

    I tried deleting this file and you get a blank white header.

    Is there anyway you can put some code in the header-image.php to disable it and allow the dynamic header code to work?

    Thread Starter quickactionguides

    (@quickactionguides)

    If you’re having trouble getting Page Magnetizer to work in WordPress, then I have a solution for you which should fix it.

    Head on over to QuickActionGuides for the WordPress plugin that will make it work.

    Download, install and activate the plugin and you should be good to go if you follow the instructions!

Viewing 2 replies - 1 through 2 (of 2 total)