How to configure the text of the banner and the color of the floating button?
-
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 textWhat 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 enoughWhat 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
Thanksadd_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; }
- The topic ‘How to configure the text of the banner and the color of the floating button?’ is closed to new replies.