Forums

Change permalink structure breaks my custom theme (3 posts)

  1. WhiteDoveGifts
    Member
    Posted 3 years ago #

    Hi,

    My blog http://www.whitedovegifts.nl/blog (ver. 2.6.5) has a custom built theme made by a designer. When I wanted to change the permalink structure to /categoryname/postname it messed up the header and sidebar.

    The culprit behind this is that the designer had to create an images folder in the root with non-background images (like the logo), otherwise those images won't show.

    Does anyone know a solution or workaround for this? Any help would be appreciated.

    regards,
    Nico

  2. joebrooksie
    Member
    Posted 3 years ago #

    Hello whitedovegifts,

    You should use php to link to the Theme Directory's image folder - like this:
    <img src="<?php bloginfo('template_directory') ?>/images/headerbg.png">

  3. tomwgibson
    Member
    Posted 3 years ago #

    Hi Joe.

    Thanks for posting this. I too have the same problem. Can you tell me where to put this? I'm not a web programmer but have adjusted by WordPress Plainscape theme (on advice of author) and it works fine only if I use a Default permalink.

    My blog is http://www.outsideincredible.com/blog

    Here is my STYLE.CSS code
    -------------------------
    #header {
    background:url('http://www.outsideincredible.com/blog/wp-content/themes/plainscape/images/blogheader.gif') no-repeat top left;
    margin: 0 20px;
    padding: 30px 0 90px;
    }

    This seems to be the relevant section from HEADER.PHP
    ------------------------------------------------------

    <div id="header">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>

    Thanks. Tom

Topic Closed

This topic has been closed to new replies.

About this Topic