New answers tagged

1 vote

Swap Wordpress "Widget Area" based on Page Template

WOW! well, it would seems as tho i figured it out! after MORE searching, i came across https://learn.wordpress.org/lesson-plan/widget-areas apparently i had to "register" a "sidebar&...
4 votes
Accepted

Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?

TL;DR: Yes, it's possible to add a Custom Dashboard Widget to a Custom Admin Menu Page. Option-1: Without the dashboard like UI: If all you want is just displaying the custom Widget data (without the ...
  • 8,349
1 vote

WordPress 6.0 class-wp-widget.php fatal errors in PHP 8.1.6

For anyone still having this issue, you can try to go wordpress/wp-includes/class-wp-widget-factory.php on line 61 make this change to fix the issue without changing any other code: Change this: $this-...
1 vote
Accepted

How to tell if a dynamic sidebar is being displayed on page?

Because of the way templates are rendered in WordPress it won't be possible to know if a page has a sidebar until after that sidebar has been rendered. This is because code in templates can't 'know' ...
0 votes

Remove nofollow attribute from social widget links

You should really put this in an external file and enqueue it properly in your website footer using the WordPress default enqueue methods, either in your custom theme or from inside a custom plugin, ...
  • 337
0 votes

Remove nofollow attribute from social widget links

As of 6.1.1, I have discovered you can achieve this by disabling the option to open each social link in a new tab. Imagine this will change in a future WP update.
0 votes

Determine if a specific Gutenberg block is used on pages/posts

Like @Phil mentioned, using has_block() works if you are using acf_register_block_type() to create your block so long as you preface it with "acf/". So my block was registered like: ...
  • 488

Top 50 recent answers are included