WordPress.org

Ready to get started?Download WordPress

Forums

Spun
customize network site (hardcoded site description) (3 posts)

  1. christophe913
    Member
    Posted 1 year ago #

    Hi,
    I've created a website (child) based on the Spun theme : http://www.tegula.be. This site is the dutch version.
    Now, I've created a network site (the english version) : http://www.tegula.be/en/.
    All goes well!

    But, the only problem now is: my site description (www.tegula.be) : "gespecialiseerd in de restauratie van keramische tegels, mozaïek, aardewerk, steengoed, porselein en aanverwante materialen".
    I hardcoded the site description in header.php.

    I want to put the english version of the site description on http://www.tegula.be/en/

    However, since http://www.tegula.be/en/ is "virtual", it does not not have an actual folder on the server. So I cannot make a separate translation for my site description.

    Any solution?

    Thanks,
    Christophe.

  2. christophe913
    Member
    Posted 1 year ago #

    Could anyone help please?
    Thanks,
    Christophe.

  3. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    In header.php, you could use an IF statement to check which site you're viewing, then change the site description accordingly. I'm not sure exactly how you'd do that, probably check the URL...

    if ( viewing the English version ) :
       echo "English tagline";
    else :
       echo "Dutch tagline";
    endif;

    It's the "viewing the English version" part I'm not sure how you'd code.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic