Support » Developing with WordPress » Making a font inside a function bigger

  • I’d like to make bigger the content of the label. Is there a method?

    echo '<label>'. esc_attr( get_the_author_meta( '1_per_hol', $post->post_author ) ) .'</label>' . '<br></br>' . '<div>  <input type="number" id="prezzo_settimana" name="function_prezzo_primo" value="'.$number.'" placeholder= "'. esc_attr( get_the_author_meta( '1_per_hol', $post->post_author ) ) .'" /></div>';
    
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Ian Sackofwits

    (@plantprogrammer)

    Hey, sacconi, you could either add an inline style to that PHP that you’re outputting (i.e. style=") or give your label an id or class (i.e. <label id="...">) so that you could target it with some CSS.

    Thread Starter sacconi

    (@sacconi)

    La label is inside the post editor page. I tryed with

    #etichetta_data {
      font-size: 1.875em;
    }

    or

    #etichetta_data .selector {
      font-size: 1.875em;
    }

    But it doesnt work

    Moderator bcworkz

    (@bcworkz)

    Where did you place that CSS? CSS for the editor and admin area is completely separate than that for front end content. You also often need to flush your browser cache when you make changes to a CSS file. If your required admin styles are very limited, it’s probably best to simply add a style attribute to the HTML element like Ian suggested.
    <label style="font-size: 1.875em;">Example Label</label>

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