WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My title won't do as I ask (13 posts)

  1. jadr
    Member
    Posted 8 years ago #

    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)

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I might be misunderstanding, but are you after what is called breadcrumbs ?
    http://markashields.com/category/wordpress/plugins/

  3. jadr
    Member
    Posted 8 years ago #

    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

  4. Ptryk
    Member
    Posted 8 years ago #

    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

  5. jadr
    Member
    Posted 8 years ago #

    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

  6. jadr
    Member
    Posted 8 years ago #

    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

  7. Karel
    Member
    Posted 8 years ago #

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

  8. bob58
    Member
    Posted 8 years ago #

    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.

  9. Ptryk
    Member
    Posted 8 years ago #

    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!

  10. jadr
    Member
    Posted 8 years ago #

    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

  11. jadr
    Member
    Posted 8 years ago #

    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

  12. splosh
    Member
    Posted 8 years ago #

    I think optimal title plugin does a simple version

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

  13. jadr
    Member
    Posted 8 years ago #

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

    Cheers
    Jakob
    http://Boyer-Draeby.dk

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.