WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
[resolved] twenty-twelve home url on logo (7 posts)

  1. maxemil
    Member
    Posted 1 year ago #

    Hi, awesome theme - congrats!

    Running some performance test (via webpagetest.org) on a site running the twenty-twelve theme, after watching http://wordpress.tv/2012/10/04/jeff-waugh-turbopress-the-high-performance-guide-to-wordpress/ (greeeeat video!)

    I notice on http://codex.wordpress.org/Function_Reference/bloginfo that we should all be changing from bloginfo('wpurl') to the new home_url('/').

    However, could I ask that the logo/sitename on the theme is NOT having trailing slash please. so using home_url() instead of home_url('/') in header.php

    I know its a minor tweak :)

    http://wordpress.org/extend/themes/twentytwelve/

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    so using home_url() instead of home_url('/') in header.php

    Why?

  3. maxemil
    Member
    Posted 1 year ago #

    to remove the trailing slash

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Yes but why would you want to do that?

  5. maxemil
    Member
    Posted 1 year ago #

    Basically its esthetics.
    my url is advertised without a trailing slash - like most other sites in the world, yours too I guess.
    There is no reason to add it to the logo / site name "go to the frontpage" link.

    I dont recall seeing <?php echo get_bloginfo('wpurl').'/'; ?> explicitly adding a trailing slash before in any themes - and basically I just find it odd to add it on the logo/frontpage link...

    :)

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    There is no reason to add it to the logo / site name "go to the frontpage" link.

    Actually there is. Some sites that use mirrors or other forms of redirection rely heavily on the trailing /. If it doesn't suit your purposes, you can create a child theme of Twenty Twelve

  7. maxemil
    Member
    Posted 1 year ago #

    it just that its something someone actively decided to put the extra / in the theme. If it were as critical for some sites as you indicate, then it would also be added to the wp-options table for the wordpress url / site url ?

    When I link to my site I link to the site url, not the site url/

    Anyways, I dont know enough about browser behavior and need for redirects to make a sane argument - it was a reflection on how a specific site told me to cache and me wondering why there are being added a / to my site.. Have a lovely day :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic