Category: Code

Code

How to Remove Blank Thumbnails from WordPress Media Library After Direct FTP Deletion

If you’ve directly deleted images uploaded to WordPress using FTP or another method, you might notice that your WordPress Media Library still displays blank thumbnails of the deleted images. This can be frustrating, especially after trying various plugins like Advanced Database Cleaner and Media Cleaner without success. However, there’s a straightforward solution to this issue …

Code

Enhancing User Engagement with Infinite Scrolling in WordPress

Implementing infinite scrolling on your WordPress site can significantly enhance user engagement by providing a seamless browsing experience. This technique allows readers to continuously view content without manual pagination, keeping them engaged for longer periods. Implementing Infinite Scrolling in WordPress Introduction Infinite scrolling is a popular feature on modern websites, particularly beneficial for blogs and …

Code

How to Add a Pinterest Button to Images on Your Website

In this post, I’ll teach you how to add a Pinterest button on your website without plugins, and the images will always display on your images, not mouse hover to display the button. In the era of digital marketing and social media, integrating platforms like Pinterest into your website can significantly enhance your content’s reach …

Code

How to Customize WordPress Thumbnail Cropping to Focus on the Top Part of Images

If you’re looking to customize the default behavior of WordPress thumbnail cropping to focus on the top part of your images, you’ve come to the right place. By default, WordPress crops thumbnails from the center, which might not always be ideal, especially if you want to emphasize the top section of your images. Here, we’ll …

Code

Add Content After Theia Post Slider

// slider function my_custom_function( $html) { $html .= ‘ ‘; $html .= get_post_field(‘post_content’, $post_id); $html .= ‘ ‘; return $html; } $priority = 10; add_filter( ‘tps_the_content_after’, ‘my_custom_function’, $priority, 2 ); wp_register_script(‘clickmag’, get_template_directory_uri() . ‘/js/slider-handlers.js’, array(‘jquery’), ”, true);