Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gunu

    (@grafcom)

    @pstiel,

    I am using bloginfo(‘url’); in my template to get the URL of the current homepage depending on the language chosen.

    Do you have manually added the links?

    Thread Starter pstiel

    (@pstiel)

    Hi Gunun,
    you mean instead of writing

    <a href="<?php bloginfo('url'); ?>">
         <img src="<?php bloginfo('template_url'); ?>/images/Logo.png"  id="logo"/> </a>

    I could write

    <a href="<?php _e('<!--:en-->https://www.achteminute.de/en<!--:--><!--:de-->https://www.achteminute.de<!--:-->'); ?>">

    This indee works, although I would consider this solution a quick-and-dirty-one…

    Plugin Author Gunu

    (@grafcom)

    @pstiel,

    no I do not mean that.

    What theme are you using?

    If you try a standard WP theme it works as it should?

    Thread Starter pstiel

    (@pstiel)

    With WordPress Thentyfiveteen it works, but that theme uses the following code to give the home url. This code doesn’t work with my theme (and I don’t understand how it works).
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bloginfo('url') gives wrong results’ is closed to new replies.