WordPress.org

Ready to get started?Download WordPress

Forums

is_home or is_front_page and sub-directory conditional how?? (1 post)

  1. dotnature
    Member
    Posted 3 years ago #

    I have a multilingual theme with an image slider that shows only on the home page.

    It is using the is_home (is_front_page works too) to display the slider.

    But my site is multilingual with languages in a sub-directory url created dynamically. So for instance the French home page is

    http://www.site.com/fr

    How can is tell word-press to use a conditional like "is_home" and a sub directory as well for /fr ?

Topic Closed

This topic has been closed to new replies.

About this Topic