• Hi Can anyone tell how can i add more article in You May Also Like section in theme. presently it showing only 3. I want 6. can anyone help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 12851872

    (@anonymized-12851872)

    Hi,

    You have a child theme?
    Where do see it this “You May Also Like” section?
    https://demo.themegrill.com/colormag/
    Please give the url of your site.
    Thank You

    Thread Starter csahab

    (@csahab)

    Hi thanks for your reply.

    Here is link you can check

    https://www.foodtourist.in/schezwan-style-chicken-lollipop/

    I dont have child theme I am using colormag as theme.

    Thanks

    Anonymous User 12851872

    (@anonymized-12851872)

    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

    Thread Starter csahab

    (@csahab)

    Thanks will do that.,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add 6 article in You May Also Like’ is closed to new replies.