WordPress.org

Support

Support » Themes and Templates » Age verify on Mantra

Age verify on Mantra

  • Maniackiller
    Member

    @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
    Forum moderator

    @anevins

    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 } ?>

    Maniackiller
    Member

    @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

    Maniackiller
    Member

    @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.