• Resolved annoy

    (@annoy)


    Hallo, great Plugin, love it!
    2 Questions:

    1.When opening the Side with my Iphone, there is a little white space on Top before the Background Image starts. Also the Content is not good to scroll on Iphone. I have to hold the Iphone horizontal one time and then turn it back again vertikal, than the white space disapears and the content is good to scroll. Any idea what the Problem could be?

    2. I use a multi language side (German/Englisch) with the WPML Plugin. Is it possible to switch the language of the Plugin when it is opening to another language?

    Thank you very much

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @annoy,

    For part one, can you update to 2.2.3 (just released), it has some style tweaks that will hopefully fix things.

    For the second part, this is to show on the front end when the age gate is shown?
    It is possible with a bit of filter use.

    You can add content either before or after the age gate form using the age_gate_before or age_gate_after filters. Using that you can add one of the WMPL shortcodes. Here’s an example of the dropdown before the age gate:

    
    function add_wmpl_switcher_to_age_gate(){
    	$wpml_short = do_shortcode('[wpml_language_switcher type="widget" flags=1 native=1 translated=1][/wpml_language_switcher]');
    	return '<div class="ag-language-selector">' . $wpml_short . '</div>';
    }
    add_filter('age_gate_before', 'add_wmpl_switcher_to_age_gate');
    

    You’ll then probably want to add a bit of a margin to that, so in your theme css or the custom CSS in the Advanced Age Gate settings add something like:

    
    .ag-language-selector { margin-top: 50px; }
    

    Hope that helps, let me know if you need anything else.

    Thanks
    Phil

    Thread Starter annoy

    (@annoy)

    Thank you for your really fast answer!
    I just updated your Plugin. For Iphone, the last 3 Words of my Text (Gesetz vollj?hrig sein.) are not visable and are hidden by the Iphone Menü below, any Idea of that?

    Thank you for your example with the
    language, i′m not quite sure where to add your code and how to find these filters.

    Thank you

    • This reply was modified 6 years, 2 months ago by annoy.
    Plugin Author Phil

    (@philsbury)

    Hi again @annoy,

    I’ve just had a look and you’re right. Should be a simple fix for you.

    Got to the Advanced tab in the Age Gate settings and add the following to the CSS editor:

    
    .age-gate {
      padding-bottom: 50px;
    }
    

    I’ll roll that CSS into the next release.

    To add the filter, that would go in your functions.php. If you are using a theme that might be updated, then you should create a child theme so that any changes you make don’t get overridden when the theme is updated.

    If that’s a bit too complicated, there’s a plugin called code snippets that might be and option, you can just add the code into that and everything should work.

    Thanks
    Phil

    Thread Starter annoy

    (@annoy)

    I made it with a child Theme now and yes, this works absolutely great, thank you sooooo much, amazing support!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Little Problem with Mobile Look and Language Question’ is closed to new replies.