1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

set two different font size for my blog posts

Discussion in 'Blogging' started by bimmerime, Sep 29, 2015.

  1. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    19
    hi,
    i would like to set two different font size for my blog posts


    first font size: when i'm on a single blog post
    second font size: when my blog posts are displayed on my homepage


    any ideas how to do this?
     
  2. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    19
    anyone with some CSS knowledge can help me
     
  3. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,737
    Likes Received:
    2,656
    Occupation:
    blog creator
    Location:
    UK
    looks like you need a css selector, try this in your style sheet, preferbly within your child theme change the xx to a number you want
    .post p { font-size: XXpx;
    }
     
  4. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    10,182
    Likes Received:
    7,831
    Home Page:
    In Wordpress?
    if so you can edit templates. Use opera or chrome browser to inspect page on your site, look at source and find the name of the div where the posts are displayed on both pages.

    then edit the respective pages in WP - will probably be single.php for blog post pages and main.php or similar for homepage.

    You can add in font style for each...
     
    • Thanks Thanks x 1
  5. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,737
    Likes Received:
    2,656
    Occupation:
    blog creator
    Location:
    UK
    you don't need to change the php files,css will do it and it must be done in a child theme to protect it from future updates, you must never ever change core code in wordpress as stated by WordPress.org
     
  6. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    19
    tried this but nothing changed
     
  7. ContentWriter

    ContentWriter Jr. VIP Jr. VIP

    Joined:
    May 8, 2013
    Messages:
    2,915
    Likes Received:
    382
    Occupation:
    Content Writer
    Home Page:
    Go to BHW's Hire a Freelancer section. There surely is a freelancer who can help you generate CSS codes for that.
     
  8. asfrankito

    asfrankito Registered Member

    Joined:
    Jul 15, 2012
    Messages:
    66
    Likes Received:
    10
    Too easy buddy, put each content a class, and from style.css you choose the font you want
     
  9. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,737
    Likes Received:
    2,656
    Occupation:
    blog creator
    Location:
    UK
    it's a bit hard to do without knowing your url, as i said earlier it's a simple css selector but without actually seeing your site it's a bit trying to do it blind. why not ask your themes support or go to wordpress.org and ask on their forum