Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter managerslo

    (@managerslo)

    Should I register the pll string slider_title to my functions.php Sydney Child?

    Hi @managerslo,

    I did testing with the latest version of Sydney. And I can confirm that while using Polylang, all slides text are translatable through Languages menu > Translations menu.

    If you are using child theme or other mechanism to extend the default slide content, and this probably blocking Polylang translation, so you would need to do some adjustments. Refer to the relevant theme’s code in inc/slider.php. Sydney slide content can be found in these lines:

        $titles = array(
    'slider_title_1' => get_theme_mod('slider_title_1', 'Welcome to Sydney'),
    'slider_title_2' => get_theme_mod('slider_title_2', 'Ready to begin your journey?'),
    'slider_title_3' => get_theme_mod('slider_title_3'),
    'slider_title_4' => get_theme_mod('slider_title_4'),
    'slider_title_5' => get_theme_mod('slider_title_5'),
    );
    $subtitles = array(
    'slider_subtitle_1' => get_theme_mod('slider_subtitle_1', 'Feel free to look around'),
    'slider_subtitle_2' => get_theme_mod('slider_subtitle_2', 'Feel free to look around'),
    'slider_subtitle_3' => get_theme_mod('slider_subtitle_3'),
    'slider_subtitle_4' => get_theme_mod('slider_subtitle_4'),
    'slider_subtitle_5' => get_theme_mod('slider_subtitle_5'),
    );
    $images = array(
    'slider_image_1' => get_theme_mod('slider_image_1'),
    'slider_image_2' => get_theme_mod('slider_image_2'),
    'slider_image_3' => get_theme_mod('slider_image_3'),
    'slider_image_4' => get_theme_mod('slider_image_4'),
    'slider_image_5' => get_theme_mod('slider_image_5'),
    );
    Thread Starter managerslo

    (@managerslo)

    Thanks you @kharisblank.

    I am using Sydney Child theme and when using Child theme it does not translate the slider titles and button text. It does translate the menu text, logo etc., just not the slider titles and button text.

    I found the file sydney/inc/slider.php in my cp, and the text that you mentioned (//Slider text; lines 26-46). Should I change the text in this file or should I register something (and how) in my Sydney Child files?

    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.

    Hi @managerslo,

    Thanks for getting back.

    I don’t have any clue for now until I get additional information (probably) from a pastebin[dot]com’s link to your child theme’s functions.php is shared here.

    Thread Starter managerslo

    (@managerslo)

    Thank you @kharisblank

    In my Sydney-Child functions.php I have only one if code;

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):

    function chld_thm_cfg_parent_css() {
        wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'sydney-bootstrap' ) );
    }

    endif;

    In my Sydney-Child functions.php I have only one if code;

    There should be no issue with the header’s translation. I am wondering which current version of Sydney are you using. Is it the latest?

    May I suggest you to temporarily switching to main theme for testing purpose?

    Thread Starter managerslo

    (@managerslo)

    Everything is up to date, wp (version 6.6), elementor, polylang, other plugins.

    I switched to main theme for you to check it.

    Main language is Slovenian. The slider is not visible. Also when going on sites subpages (also in primary language), you can not change the language, there is not flag.

    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.

    Hi @managerslo,

    Upon another checking on your site, I don’t see Sydney theme’s slider appears in homepage. This content (https://i.snipboard.io/my0zFB.jpg) looks likely to be made with particular page builder plugin.

    I’d like to mention that in Polylang, the Sydney’s slides translation screen can be found here: Dashboard menu > Languages > Translations > choose Sydney in the filter menu. Ref: https://i.snipboard.io/7aqu9S.jpg

    Also when going on sites subpages (also in primary language), you can not change the language, there is not flag.

    Such this kind of issue is not related to Sydney. It looks likely there is missing configuration with your language plugin. If you can’t find where it is, I’d recommend contacting the plugin’s author.

    Thread Starter managerslo

    (@managerslo)

    When Sydney Child is active the sydney slider is shown (https://snipboard.io/FT25hP.jpg), but when Sydney main theme is active the sydney slider is not shown (https://snipboard.io/tNnJZX.jpg).

    • This reply was modified 4 months, 1 week ago by managerslo.
    • This reply was modified 4 months, 1 week ago by managerslo.

    but when Sydney main theme is active the sydney slider is not shown (https://snipboard.io/tNnJZX.jpg).

    I forgot to mention that customizer data is linked to current folder name of active theme. When switching theme, settings have been made in the customizer should be re-enabled manually one by one. It is not an issue with theme theme. This is how WordPress customizer data treats active theme.

    Thread Starter managerslo

    (@managerslo)

    Thank you @kharisblank

    I think this could be something between Polylang and Sydney, or Polylang and Wp un-compatibility. When I deactivate my Polylang plugin, the site is not functionung, not loading https://snipboard.io/Rmzp8U.jpg

    Or maybe I am wrong ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.