maxemil
Member
Posted 7 months 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/
so using home_url() instead of home_url('/') in header.php
Why?
maxemil
Member
Posted 7 months ago #
to remove the trailing slash
Yes but why would you want to do that?
maxemil
Member
Posted 7 months 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...
:)
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
maxemil
Member
Posted 7 months 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 :)