• Resolved miguelapps

    (@miguelappslaparra)


    Hello.
    Congratulations on your products, they are amazing.
    Today I come with two questions.
    1 – I want to change the size of the banner to yes as the size of the text

    What should I do to change the height of the banner and the size of the text?
    2 – I want to change the color of the floating button, because of the color of my website, it is not distinguished clearly enough

    What should I do to change the color of the floating button?

    I have reviewed other questions on this site and only found two possible solutions that you indicate to other users:
    The first one is to change the color of the banner, but I’m sorry to say it doesn’t work for me.
    I have it in a file in my child theme, but we don’t change the button color
    Can you tell me what I’m doing wrong?

    add_action('moove_gdpr_inline_styles', 'gdpr_cookie_css_button_tyle_extension', 10, 3);
    
    function gdpr_cookie_css_button_tyle_extension($styles, $primary, $secondary)
    
    {
    
    ob_start();
    
    ?>
    
    #moove_gdpr_cookie_info_bar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content a.mgbutton:hover,
    
    #moove_gdpr_cookie_info_bar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.mgbutton:hover,
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder a.mgbutton:hover,
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton:hover,
    
    .gdpr_cookie_settings_shortcode_content .gdpr-shr-button.button-green:hover,
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder a.mgbutton.moove-gdpr-modal-save-settings:hover,
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton.moove-gdpr-modal-save-settings:hover {
    
    color: #fff;
    
    background-color: #000;
    
    border-color: #000;
    
    }
    
    <?php
    
    return $styles . ob_get_clean();
    
    }

    The second function that I found is to change the size of the banner text.
    I want to change the height of the banner, I imagine that by changing the size of the text, the banner will adapt.
    See the function and tell me why it doesn’t work.
    Like the previous one, I have added it to the function.php file and in a file I have for GDPR functions, but in neither case does it work
    Thanks

    add_action('moove_gdpr_inline_styles','gdpr_cookie_css_extension',10,3);
    
    function gdpr_cookie_css_extension( $styles, $primary, $secondary ) {
    
    // Custom font size for banner
    
    $font_size_banner = '38px';
    
    // Custom font size for settings
    
    $font_size_settings = '14px';
    
    // Banner Font Alignment
    
    $styles .= '#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p, #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p a { font-size: '.$font_size_banner.' }';
    
    // Settings Screen Font Alignment
    
    $styles .= '
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-tab-main .moove-gdpr-tab-main-content a,
    
    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-tab-main .moove-gdpr-tab-main-content p { font-size: '.$font_size_settings.' }';
    
    return $styles;
    
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @miguelappslaparra

    Thanks for using our plugins.

    You can create your own custom front-end layout.
    Simply copy the “gdpr-modules” folder from the plugin directory to your theme directory.
    If you do this, your changes will be retained even if you update the plugin in future.
    Any customisation should be implemented by experienced developers only.

    Hope this helps.

    Thread Starter miguelapps

    (@miguelappslaparra)

    Well, thanks for your answer.

    I don’t have the knowledge to do that and I didn’t find any documentation to be able to do it either.

    I will look for another Plugin that I can customize, I see that GDPR Cookie Compliance is for professionals and experienced people

    Thanks and good luck

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to configure the text of the banner and the color of the floating button?’ is closed to new replies.