Hi,
it’s the function related posts.
you should never change a theme directly, create a child theme, the theme Colormag, in this case, parent theme, the code should not be changed.
You have in the “Featured picture” frame images of size 800x445px, very important.
In “Related Articles” images must exactly 390×205 pixels.
Above all it is essential to create a child theme and how a new theme to reconfigure everything.
FTP, create a folder foodtourist in wp-content/themes/
in the folder, create two files, one named style.css and another file called functions.php
in style.css, put this code
/*
Theme Name: foodtourist
Description: Colormag Child Theme
Author: csahab
Author URI: https://www.foodtourist.in/
Template: colormag
*/
and save
in the functions.php file, put this code
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>
and save, then activate the child theme.
https://www.youtube.com/watch?v=LRw2BmRPNH0
you have to create an account on the author’s forum theme?
https://themegrill.com/support-forum/forum/colormag-free/
it can give you the exact code for 6 related articles instead of 3
complicated to edit a file functions.php