• Maniackiller

    (@maniackiller)


    Hi.
    I want to use age verify plugin with mantra and it works . I’ve asked plugin’s author if i could set a background image insted of a color as background to the plugin.
    He gave me this :

    <?php add_action( ‘av_custom_styles’, ‘my_av_custom_styles’ );

    function my_av_custom_styles() { ?>

    <style type=”text/css”>
    #av-overlay-wrap {
    background: url(path/to/your/image.png);
    }
    </script>

    <?php } ?>

    I insert that code on theme-function.php but it gives some problems :
    The age verify box opens properly with the background image but all the contenent fo the website loses the correct width and height, margin, etc.

    Is there a form to use that code without changing anything else en the website ?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try using this instead;

    <?php add_action( 'av_custom_styles', 'my_av_custom_styles' );
    
    function my_av_custom_styles() { ?>
    
    <style type="text/css">
    #av-overlay-wrap {
    background: url(path/to/your/image.png);
    }
    </style>
    
    <?php } ?>

    Thread Starter Maniackiller

    (@maniackiller)

    Parse error: syntax error, unexpected ‘<‘ in /home/public_html/wordpress/wp-content/themes/mantra/includes/theme-functions.php on line 413

    ;S

    Also even if i dont use this function, with the last version of mantra when i click on each dropdown of age verify box it close (the dropdown) without allowing you to chose your yyyy/month/day

    Thread Starter Maniackiller

    (@maniackiller)

    I’ve tried to use inputs but it also reload the page each time you click .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Age verify on Mantra’ is closed to new replies.