Support » Plugin: Spam protection, AntiSpam, FireWall by CleanTalk » Dashboard widget contains “Refresh” and “Configure” in the wrong place

  • Resolved Arno Welzel

    (@awelzel)


    The dashboard widget contains two links in the header: Refresh and Configure. However this is not the ideal place since the header is supposed to contain only the title and controls provided by WordPress to move the widget up and down or to collapse it if needed.

    So “Configure” can’t be clicked since other controls by WordPress are in front of it. And even it it would be clickable then the controls by WordPress would not be usable any longer.

    Also see this screenshot: https://arnowelzel.de/samples/cleantalk-dashboard-widget-wordpress-5.png

    Please move those to links down to the widget content area where they should be.

    • This topic was modified 2 months, 2 weeks ago by Arno Welzel. Reason: typo
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support SergeM

    (@serge00)

    Hello, @awelzel.

    Thank you for your feedback. We’ll fix that in the next plugin release that should happen in one week or two.

    Thanks for the fast response. Keep up the good work!

    Plugin Support SergeM

    (@serge00)

    No problem. Thank you!

    Plugin Author Safronik

    (@safronik)

    Hello,

    Thank you for great feedback! We have fixed the problem.

    Please, reinstall the plugin. ( Download link: https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip )

    Here is an instruction:

    1. Go to WordPress Administrator Panel —> Plugins.
    2. Find the plugin “Spam Protection by CleanTalk” —> Deactivate.
    3. After the automatic page refresh find the plugin again “Spam Protection by CleanTalk” —> Delete. Confirm “Yes, delete these files”.
    5. Go to Plugins —> Add New —> Upload Plugin.
    4. Download the plugin archive from the link above.
    6. Choose the downloaded archive and press “Install Now”.
    7. Once you on Dashboard page, please, press CTRL + F5 to clear cache.

    Contact us if you have any questions.

    Thanks for the quick fix!

    But maybe there is a misunderstanding. It’s not about changing the CSS rule to move the links to the left. Maybe a future WordPress update will change the design of the dashboard widget title bar even further. And on mobile devices it still may happen that those custom links conflict with the title. The links should not be there at all.

    What is the problem with just moving those links down to the content area of the widget? The title area of a dashboard widget is not intended to contain anything functional beside what WordPress itself puts there.

    In fact you add the links as part of the name of the widget – should be avoided as the name should just be a text in the title bar and not a complete HTML fragment including links etc.:

    		wp_add_dashboard_widget(
    			'ct_dashboard_statistics_widget',
    			$apbct->plugin_name
    			."<div class='ct_widget_top_links'>"
    				."<img src='".plugins_url('/cleantalk-spam-protect/inc/images/preloader.gif')."' class='ct_preloader'>"
    				.sprintf(__("%sRefresh%s", 'cleantalk-spam-protect'),    "<a href='#ct_widget' class='ct_widget_refresh_link'>", "</a>")
    				.sprintf(__("%sConfigure%s", 'cleantalk-spam-protect'), "<a href='{$apbct->settings_link}' class='ct_widget_settings_link'>", "</a>")
    			."</div>",
    			'ct_dashboard_statistics_widget_output'
    		);
    

    Also see https://developer.wordpress.org/reference/functions/wp_add_dashboard_widget/.

    Plugin Support amagsumov

    (@amagsumov)

    @awelzel

    Thank you for your feedback and suggestion.

    We will discuss it and contact you within 2 days.

    Plugin Author Safronik

    (@safronik)

    Hello,

    Thank you for the detailed feedback! We’ll reconsider this in next versions.

    Contact us if you have other questions.

    Plugin Support SergeM

    (@serge00)

    Thank you for waiting.

    Please, re-install the plugin from this archive:
    https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip

    Did it help?

    Thank you! This is better. It may even be improved a bit more by adding a float:right to this CSS rule so the available space within the widget will be used better:

    ct_widget_top_links {
        text-align: right;
        padding: 0 12px;
        height: 32px;
        float: right;
    }

    Also see the screenshot with this modification:

    https://arnowelzel.de/samples/cleantalk-dashboard-modified-2020-08-25.png

    Plugin Support alexandergull

    (@alexandergull)

    Well, looks good. I transfer this to the developer.

    Best regards,

    Plugin Support amagsumov

    (@amagsumov)

    Hello.

    We’ve decided to not add a float:right because when you press “refresh” there are issues with header.

    That’s fine for me as well.

    Plugin Support SergeM

    (@serge00)

    Thank you for your feedback, Arno.

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.