Forum Replies Created

Viewing 15 replies - 31 through 45 (of 50 total)
  • Thread Starter cars111

    (@cars111)

    Can anyone help, please?

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi I have signed up thanks

    Thread Starter cars111

    (@cars111)

    Hi this is the only code I have in the function file:

    function oceanwp_child_enqueue_parent_style() {
    // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
    $theme = wp_get_theme( ‘OceanWP’ );
    $version = $theme->get( ‘Version’ );
    // Load the stylesheet
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );

    }
    add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );

    function weglot_mobile() { ?>
    <div class=? weglot_here ?></div>
    <?php
    }
    add_action( ‘ocean_after_nav’, ‘weglot_mobile’ );

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi thanks so much for all the help, i have added the code but it will not allow me to save it says: nonce_failure

    i pasted this into the function file

    function weglot_mobile() { ?>
    <div class=? weglot_here ?></div>
    <?php
    }
    add_action( ‘ocean_after_nav’, ‘weglot_mobile’ );

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi here is Max reply
    Indeed the div is present but as I told you before nothing appears because of your theme. Some CSS rules make conflict with our button which is why it’s not displayed correctly on the menu.

    Hope you can help

    Thread Starter cars111

    (@cars111)

    Hi i have amended the code to <div class=”weglot_here”></div> and this <div class=weglot_here></div> still not showing on mobile

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi here is what Max says

    Indeed, the button was already hidden but it was due to the theme you are currently using which contains CSS rules that are in conflict with the button.

    There is a way to add another button in the source code with “<div class=”weglot_here”></div>”.
    However, you’ll need to change your theme CSS rules.

    Thanks

    Thread Starter cars111

    (@cars111)

    This is what Max from Weglot emailed me.

    Regarding your issue, you have to add a second button in your mobile menu using the <div class=? weglot_here ?></div> and then if the button you add in the mobile version, also appear in the desktop version, use a media quires to hide it when you are in the desktop version, using:

    @media screen and (max-width: 959px) {
    .country-selector {
    display: none!important;
    }
    }

    I remain at your disposal if you have any other question.
    Have a nice day,

    Max T.

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi I have added the code to child functions and it is still not showing. Hope you can help. Thanks

    Thread Starter cars111

    (@cars111)

    Hi thank you for the reply https://www.bladerunnermallorca.com The weglot guys have added the code but it isnt showing

    Thanks

    Thread Starter cars111

    (@cars111)

    Hi I a bit disappointed by your reply. I chose the Weglot plugin as you recommend it on your website. I have used Weglot on other themes and they ALL show the language toggle on mobile. I presumed if you are recommending this plugin that it would work but alas it does not. The Weglot guys have gone into my website and they have said

    ”The fact is that your theme have some CSS rules that creates conflict with the language selector.
    I change the language selector as you can see now on your website. In order for you to display it correctly in the mobile menu, you have to use the list displayer and add the text.
    Images can’t be displayed in your menu because of the CSS rules.”

    I love your theme but it does not seem I can use it from now on as language is a big part of my websites. I hope you can shed some light on the subject.

    Thread Starter cars111

    (@cars111)

    Yes thanks again

    Thread Starter cars111

    (@cars111)

    Hi very strange I deactivated all plugins but nothing happened same error message switched to 2017 theme was working then switched back to oceonwp and everything was now working. Activated again all plugins and it seems to still be working. Go figure

    Thread Starter cars111

    (@cars111)

    Hi thanks for the quick reply. I saved the permalink settings it is using postname. I have clicked save went to my blog page and I can see the post but when I click into it same 404 message.
    Thanks

    Thread Starter cars111

    (@cars111)

    Any help guys?

Viewing 15 replies - 31 through 45 (of 50 total)