Forum Replies Created

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

    First backup the theme you are working with before modifying it.

    Basically your headers that you have now are set to be background images through your theme’s CSS stylesheet.

    So you will need to remove the code from your stylesheet that controls the header background area and set something similar to this in your theme’s header file (in the document head)

    <?php
    if(function_exists(dh_get_page_image_url)){
       $dynamic_header_url = dh_get_page_image_url();
    }
    ?>
    <style type="text/css">
       #header-background{background-image:url('<?php echo $dynamic_header_url; ?>');}
    </style>

    This is only an example and individual themes may vary drastically on how they have the header image set, but in theory, something like that is what you need to do.

    -Dan

    We have developed plugin that accomplished some of this functionality.

    While it doesn’t allow you to set a header image for each category (yet), it does allow you to set a different header image for each page/post, as well as a default header.

    https://www.ads-software.com/extend/plugins/dynamic-headers/

    Exactly where to put the template tag in your theme is dependent on what theme you are using, how it is built, and exactly how you want to display it.

    Many theme authors will handle the header area of a theme differently, meaning there is no steadfast rule in where the tag should go.

    There could also be complications if your theme is doing its own dynamic functionality in the header area.

    You might try contacting the author of your theme and explain that you are trying to replace the existing header and maybe they can shed some light on how they have that area of their theme setup.

    Hope this helps.

    Do you have a server setting setup that does not allow you to use the full URL of images and forces you to use server paths? This could be setup in such a way to prevent people from hot-linking your images, although I would think that would be a little odd (I’m not a server admin though)

    What sort of server environment are you running?

    The image doesn’t get any style formatting, that is up to you to handle in your stylesheet (for example, not everyone wants their header centered so we don’t by default). The process of centering it can also vary dependent on what theme you are using. There isn’t a perfect way for us to handle the css properties of your header area.

    As far as the red x’s, this sounds like it is a problem with your server paths.

    What version of WP are you using? This plugin was designed to be used by WordPress 2.6+ and was only tested on a LAMP server environment (not windows.)

    Hope this helps.

    This issue should be resolved with the latest version of the plugin. Try downloading again, but be sure to read the upgrade notice about the change of the image directory.

    Hope this helps.

    Forum: Plugins
    In reply to: Search Synonym Plugin
    Thread Starter k0pper

    (@k0pper)

    Anyone have any suggestions? If no one knows of a plugin, do you know where the search functionality for WP is so I can take a look at it? I glanced over the functions file, but didn’t see it.

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