• Resolved M1k22

    (@m1k22)


    Hi, I’m trying to change the Title and Subtitle hompeage structure.

    Right now I have something like this:
    <h2>
    Title
    <p>
    Subtitle
    </p>
    </h2>

    I want to change in:
    <h2>
    Title
    </h2>`
    <p>
    Subtitle
    </p>

    I found this piece of code that generate the title/subtitle but I can’t find a way to modify it:

    `if ( ! function_exists( ‘cardstyle_blog_title’ ) ) {

    function cardstyle_blog_title() {
    global $post;
    $heading = esc_html( get_theme_mod(‘blog-heading’) );
    $subheading = esc_html( get_theme_mod(‘blog-subheading’) );
    if($heading) {
    $title = $heading;
    } else {
    $title = esc_html( get_bloginfo(‘name’) );
    }
    if($subheading) {
    $title = $title.’ <p>’.$subheading.'</p>’;
    }

    return $title;
    }

    }

    How I can do that?

    Thank you so much.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Change title / subtitle structure’ is closed to new replies.