Category: 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 …


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);