Add a Numeric Pagination with Accessibility in the Beaver Builder Theme

numeric-pagination-beaver-theme

The default WordPress post pagination used in Beaver Builder Theme uses wp_pagenavi() and gives output as below.   You can swap this single post navigation for a numeric display using the navigation function the_posts_pagination(), this also has the added benefit of using accessibility features for screen readers. First up is to make sure you copy…

Read More

Set up WordPress Code Standards on Visual Studio Code on macOS

atom-codesniffer-wpcs

Here is a guide on how to get WordPress code standards using  PHPCodesniffer on Visual Studio Code text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used to have it running via Pear but have found it to be not as reliable…

Read More

Remove WordPress Default Image Sizes

remove-wordpress-default-images

WordPress image sizes contain defaults, small, medium and large as well as medium-large which is used in their implementation of responsive images. You can remove these default images with a WordPress filter intermediate_image_sizes_advanced Why you may want to do this could be that you definitely don’t need certain sizes or you are saving on web disk…

Read More