Transposh flags in the header
-
Hy i’m using transposh to setup a multilingual site and i want to move my flags from the footer widget area in to the header area and i found a code but dosn\t work
https://www.ieage.org here the exemple
the guy that created that site shared the code for moving the flags in the header
here is the code i try to copy the code in child-theme functions.php but dosn’t work
it will be displayed in first position (before the slider if any) add_action ('__after_header' , 'add_content_after_header', 0); function add_content_after_header() { //checks if we are displaying the home page if ( !tc__f( '__is_home' ) ) return; ?> <?php printf('<a href="/" rel="nofollow"></a>'); printf('<a href="/en/" rel="nofollow"></a>'); printf('<a href="/es/" rel="nofollow"></a>'); printf('<a href="/fr/" rel="nofollow"></a>'); printf('<a href="/it/" rel="nofollow"></a>'); printf('<a href="/de/" rel="nofollow"></a>'); printf('<a href="/el/" rel="nofollow"></a>'); printf('<a href="/tr/" rel="nofollow"></a>'); printf('<a href="/ru/" rel="nofollow"></a>'); printf('<a href="/zh/" rel="nofollow"></a>'); printf('<a href="/ja/" rel="nofollow"></a>'); printf('<a href="/ko/" rel="nofollow"></a>'); printf('<a href="/ar/" rel="nofollow"></a>'); printf('<a href="/he/" rel="nofollow"></a>'); printf('<a href="/hi/" rel="nofollow"></a>'); printf('<a href="/ms/" rel="nofollow"></a>'); printf('<a href="/id/" rel="nofollow"></a>'); printf('<a href="/af/" rel="nofollow"></a>'); printf('<a href="/zu/" rel="nofollow"></a>'); printf('<a href="/sw/" rel="nofollow"></a>'); printf('by <a href="https://transposh.org/" rel="nofollow"></a>'); ?> <?php }
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Transposh flags in the header’ is closed to new replies.