• Resolved stemati

    (@stemati)


    Hi

    Using ploylang, I want to show the flags horizontally without leading bulletpoints. I have appended the style into my style.css, but the change does not work.

    I am using:
    – WP 4.0
    – polylang 1.5.6
    – Moda theme
    https://www.la-iris.com
    – Permalink settings: Post Name
    – Front page: static
    – Polylang settings: default

    1. I have created a child theme and replicated the style.css, into which I have appended:

    .lang-item {
    list-style: none;
    display:inline;
    }

    2. Into the header.php I have included:

    <?php // outputs a flags list (without languages names) ?>
    <?php pll_the_languages(array(‘show_flags’=>1,’show_names’=>0)); ?>

    Thank you, Stephan

    https://www.ads-software.com/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You were close but try applying your CSS to .widget_polylang ul instead!

    BTW it’s hard for people to help you if your site isn’t accessible!

    Thread Starter stemati

    (@stemati)

    Sorry, I recently activated a “Coming soon…” plugin.

    I got my orignal setup working finally, after changing my child CSS.
    I deleted “@import…” (parent CSS) and instead created a functions.php in my child theme with this code:

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX);
    function enqueue_child_theme_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array(‘parent-style’) );
    }

    That did the trick.

    Nice to hear it’s going now ??
    Can you mark the support topic as “Resolved” if you’ve no further questions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: polylang] CSS styling not working’ is closed to new replies.