edit fonts inside h3 tag

Home Forums WordPress Themes – Premium Preference edit fonts inside h3 tag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14236

    How can I edit or change the font style in the h3 tags? I am using Google fonts, and want to use Alex Brush. Have attempted, but can’t make it work.

    ‘Alex Brush’Weddings

    WeddindyDay2_Apr78

    #14237
    Sushil Adhikari
    Moderator

    The best way is to override the existing styling for the H tags (h1, h2, h3, etc) or if there is on in particular such as H3…the styling for the headings is found in the style.css around line 232

    h1, h2, h3, h4, h5, h6{
    	font-family: alex brush,open_sans, sans-serif;
    	font-weight:400;
    	color:#333;
    	margin-bottom:16px;
    		margin-bottom:1rem;
    }

    However, if you want the styling you your page like you pasted, your code is actually incorrect. To add (what is called inline styling) a style to an element, you would do it like this:

    Weddings

    If you are using a plugin for Google fonts, then you would just do the H3 selector only with the font you want, size, etc.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.