slider multilingual
-
Hi! Good theme!
But, please tell how create multilingual slider?
Thanks!
-
And need too multilingual:
- Social Links – need links for each language
- Call us: Phone Number
- Mail us: Email Address
- Site header logo
- Default Blog Page – Other Slider Shortcode
- Default Blog Page – Banner Text
I am create:
- main-page-en
- main-page-ru
And I am edit main pages and add “Other Slider Plugin Shortcode” – work!
But when I am edit blog page, and add “Other Slider Plugin Shortcode” – no work.And need in “Child theme” add folder “languages”
Child theme download:
http://www.templatesnext.org/i-excel/
http://www.templatesnext.org/icreate/wp-content/uploads/2016/02/i-excel-child.zip Why need in Child theme .js files?I am translate and add (but no work Child theme):
\i-excel-child\languages\ru_RU.mo
\i-excel-child\languages\ru_RU.poWork only Mother theme (but need child):
\i-excel\languages\ru_RU.mo
\i-excel\languages\ru_RU.po\i-excel-child\functions.php
<?php /* * * i-excel Functions - Child Theme * ------------------------------------------------ * These functions will override the parent theme * functions. * * */ add_action( 'wp_enqueue_scripts', 'iexcel_child_enqueue_styles' ); function iexcel_child_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } // Add lang in Child theme add_action('after_setup_theme', 'iexcel_child_set_text_domain'); function iexcel_child_set_text_domain(){ load_theme_textdomain( 'i-excel', get_stylesheet_directory() . '/languages' ); }I added this code, it works.
-
This reply was modified 8 years, 10 months ago by
Vad.
No work:
I added this code, it works.
This code work:
\i-excel-child\functions.php<?php /* * * i-excel Functions - Child Theme * ------------------------------------------------ * These functions will override the parent theme * functions. * * */ add_action( 'wp_enqueue_scripts', 'iexcel_child_enqueue_styles' ); function iexcel_child_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); // Add lang in Child theme load_theme_textdomain( 'i-excel', get_stylesheet_directory() . '/languages' ); }When editing pages, you can add your own shortcode slider. I made a slider for each language.
The topic ‘slider multilingual’ is closed to new replies.
