• Resolved yannisgoutis

    (@yannisgoutis)


    Hello,
    I’m using the dyad theme and I want to make the categories names bold, or change font etc,.. I tried but no result,.. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Do not edit the theme itself. First create a child theme for your changes. Or install a custom CSS plugin.

    Thread Starter yannisgoutis

    (@yannisgoutis)

    Thanks esmi,
    I have created a child theme, but I don’t know what to do exactly,..

    What is in your child theme’s functions.php?

    Hi @yannisgoutis,

    Could you provide a link to your site? It’ll also be helpful for us to know the steps you’ve already tried for making your changes.

    If you’ve already set up your child theme, you can add CSS via its style.css file.

    You can follow the guidance here to access your site’s HTML/CSS via your browser’s inspector tools and experiment with different CSS changes:

    https://en.support.wordpress.com/custom-design/how-to-find-your-themes-css/

    I tested the following custom CSS in my own installation of the theme, and it made the category names bold:

    .has-post-thumbnail .entry-meta .cat-links {
        font-weight: bold;
    }

    If you can share a link to your site as well as more information on the specific changes you’re trying to make (e.g. what pages would you like to make the category names bold on? what font are you trying to change to and where?) then I’ll be happy to guide you further.

    Thread Starter yannisgoutis

    (@yannisgoutis)

    esmi, this is my child theme’s functions php

    <?php
    //
    // Recommended way to include parent theme styles.
    //  (Please see http://codex.ww.wp.xz.cn/Child_Themes#How_to_Create_a_Child_Theme)
    //
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    //
    // Your code goes below
    function custom_get_the_archive_title ($title) {
        if ( is_category() ) {
                $title = single_cat_title( '', false );
         }
        return $title;
    } 
    
    add_action( 'get_the_archive_title', 'custom_get_the_archive_title' );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    Looks like your child’s stylesheet is correctly enqueued. Try adding the css suggested by @siobhyb to your child’s stylesheet.

    Thread Starter yannisgoutis

    (@yannisgoutis)

    Thanks a lot siobhyb
    Problem solved

    You’re most welcome! Feel free to start another thread if any extra questions come up. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘dyad categories bold’ is closed to new replies.