• Resolved jadr

    (@jadr)


    Hi

    I’ve tried to change my titel on my web and my posts/pages. But it keeps messing up, or in other words, I can’t make it work. So now, I’ve reset it to default again. But I’d like it to work in my way, please help.

    My site is: http://www.boyer-draeby.dk.

    I want the frontpage to hold the title of my website. On all other pages/posts I want this:
    ——
    Titel of post/page >> Title of website
    ——
    For example:
    ——
    Vibration jacket for chickens >> Curiosa >> Boyer-Draeby.dk
    or
    Search specific filetypes on Google >> Google Tools >> Boyer-Draeby.dk
    ——

    What would the needed code be ?

    thx for any help
    Jakob Boyer-Dræby.dk (http://boyer-draeby.dk)

Viewing 12 replies - 1 through 12 (of 12 total)
  • I might be misunderstanding, but are you after what is called breadcrumbs ?
    http://markashields.com/category/wordpress/plugins/

    Thread Starter jadr

    (@jadr)

    no, faily simple, I want to make the title of the post be first i my IE/Browser title, and after that the name of my website

    if i getcha.. then i think you are after the code for this to get the title to show up.. if so then i think you just need to place in the single template single.php or page.php this:
    <?php the_title(); ?> <?php bloginfo('name'); ?>

    usually it sits between some heading tags or something.

    where the code will return:
    title blogname

    Thread Starter jadr

    (@jadr)

    Hi

    SO CHANGE IT FROM:
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    TO:
    <?php the_title(); ?> <?php bloginfo(‘name’); ?>

    But does this screw up the archive pages ?

    Rgds

    Thread Starter jadr

    (@jadr)

    Doesnt work, the result is that every page is titled my domain “Boyer-Draeby.dk”.

    Need it to be “Post title – Boyer-Draeby.dk”.
    and the main page should still be “Boyer-Draeby.dk”

    Restting back to default now.

    Rgds
    J

    Perhaps Optimal Title is an idea? I am using it on our church site, http://www.boskapel.nl.

    With the code you posted:

    <title>
    <?php bloginfo('name'); ?> <?php wp_title();?>
    </title>

    it should work (at least on my blog it does).

    This is – of course – in the html header section, so it usually should appear in your header.php.

    Sorry, i thought you wanted the title on the page, i misunderstood you meant the title at the top of the web browser.. in the header i have a line between

    <head>..
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » ARCHIVE <?php } ?> <?php wp_title(); ?></title>
    ..</head>

    i think (haven’t tried it myeself) you should be able to change the code bit to:

    <title><?php if ( is_single() ) { ?><?php } ?> <?php wp_title(); ?> » <?php bloginfo('name'); ?></title>

    regardless, that is the bit of code you need to work with and you will probably need to tweak it to get it exactly as you want .. good luck!

    Thread Starter jadr

    (@jadr)

    Works partly 🙂 I can make the homepage be “Boyer-Draeby.dk”, and subpages be “Title >> Boyer-Draeby.dk”… but…

    I get “>>” in front of the title and the domain, why ?
    I’ve change a bit, it now goes:

    <title><?php if ( is_single() ) { ?><?php } ?> <?php wp_title(); ?> – <?php bloginfo(‘name’); ?></title>

    I dont want anything in front of the domain when I’m in the root. SO, being in root it should just list domain: “Boyer-Draeby.dk” no extra characters.

    When on subpages, it should be “Title of post – Boyer-Draeby.dk”.

    ??

    cheers

    Thread Starter jadr

    (@jadr)

    Still no luck in changing the titel in my browser.

    I want the main title (root) to be my Domainname plus a defined extra line of information.

    My posts and pages should be “Post-subject > Domainname”

    Anyone ?

    Rgds and happy new years 06
    Jakob

    I think optimal title plugin does a simple version

    http://elasticdog.com/2004/09/optimal-title/

    Thread Starter jadr

    (@jadr)

    Hi Splosh
    Did the job, thx, nice and simple, a ‘KISS’ in your direction, thx mate.

    Cheers
    Jakob
    http://Boyer-Draeby.dk

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘My title won’t do as I ask’ is closed to new replies.