• Resolved Lust

    (@inumedia)


    Hello

    I tried to custom the dashboard in function.php with this code:

    function override_iframe_template_styles_with_inline_styles() {
        wp_add_inline_style(
          
            'give-donor-dashboards-app',
         
            '.give-donor-dashboard-donor-info__details .give-donor-dashboard-donor-info__name {
                color: green;
            }
            '
        );
    }
    
    add_action('wp_print_styles', 'override_iframe_template_styles_with_inline_styles', 10);

    but this is not working. Someone can explain ?

    Thanks 🙂

    • This topic was modified 3 years, 12 months ago by Lust.
Viewing 1 replies (of 1 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @inumedia.

    ​Glad you reached out. I can help you with that.

    Instead of using ‘give-donor-dashboards-app’ use ‘give-styles’.

    Your code would look like this:

    function override_iframe_template_styles_with_inline_styles() {
        wp_add_inline_style(
            'give-styles',
            '.give-donor-dashboard-donor-info__details .give-donor-dashboard-donor-info__name {
                color: green !important;
            }
            '
        );
    }
    
    add_action('wp_print_styles', 'override_iframe_template_styles_with_inline_styles', 10);

    ​Please let us know if you have further questions or need additional assistance!

Viewing 1 replies (of 1 total)

The topic ‘dashbord custom’ is closed to new replies.