• Resolved Alebo

    (@alebo)


    Hello , congratulations for the theme because it is very cute and functional.

    However, have a problem: i can not change the content of the features images. I want to show the categories and not the post . The problem can be solved ? Thank You

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do you want the featured images on the home page to display a category name and link to its archive?

    This is possible but not via WP-Admin. A child theme has to be created, the content-home.php file has to be edited and the get_categories() function has to be used.

    Thread Starter Alebo

    (@alebo)

    YES and thanks for the quick response. Can you tell me how to edit the content-home.php file?

    First create a child theme.

    Create a file named index.php inside the pictorico-child directory and paste this code – https://pastebin.com/g3buk24J

    Create a file named content-category.php inside the same directory and paste this code – https://pastebin.com/TV5q2ELV

    Go to WP-Admin > Appearance > Themes and activate this child theme.

    This displays all the categories on the home page without any pagination. The text and links point to the categories but the thumbnails are unchanged.

    Thread Starter Alebo

    (@alebo)

    Thank you so much. But, for the file style.css? Please, apologize for my stupidity because I am not an expert on that.

    You’re welcome!

    But, for the file style.css?

    The docs page for child themes I linked earlier covers that.

    style.css:

    /*
    Theme Name: Pictorico Child
    Template: pictorico
    */

    Also create a file named functions.php with the following code:

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    Thread Starter Alebo

    (@alebo)

    Good, everything is working. Thanks

    Glad to hear that ??

    Please mark this topic as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category in the features Images’ is closed to new replies.