how to add another version of Heading 2
-
Hi,
I’d like for a Category to retain the default h2 in black font. I’d like to add another version of h2 that uses blue font.In the category-parent.php, I see the following:
<h2 class="knowledgebase-title"><a data-placement="bottom" data-popt="kb-homepage-popover-<?php echo $scat->term_id; ?>" title="<?php echo esc_attr( sprintf( __( '%1$s / %2$s', 'ipt_kb' ), $cat->name, $scat->name ) ); ?>" href="#" class="btn btn-default btn-sm text-muted ipt-kb-popover"><i class="glyphicon ipt-icon-paragraph-justify2"></i></a> <?php echo $scat->name; ?></h2>
When I search for h2 in the style.css, I just find `html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}`I’m not sure where to add the second heading 2 version code. Also, after I add that code, how can I specify which titles on the Category page would use the default black h2 and which ones would use the second version of h2 that appears in blue? Thanks.
- The topic ‘how to add another version of Heading 2’ is closed to new replies.