WordPress.org

Ready to get started?Download WordPress

Forums

Mantra
Age verify on Mantra (4 posts)

  1. Maniackiller
    Member
    Posted 1 year ago #

    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.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    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 } ?>
  3. Maniackiller
    Member
    Posted 1 year ago #

    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

  4. Maniackiller
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.