WordPress.org

Ready to get started?Download WordPress

Forums

BlackBird
[resolved] Formatting - Font Size / Paragraphs (9 posts)

  1. elstellino
    Member
    Posted 1 year ago #

    Hello again. I managed to modify my website as I wanted to, soon I will start writing the contents too. Still, there are two little things I can't modify: in the home page, the caption of the main image has a title which behaves as <h1> and then I wanted to add an Italic text (done) as subtitle. Playing with the h-tags in front-page.php didn't bring any joy, even tagging as <h1> the second line just modifies the indent.
    Any idea how to give a bigger size to that "Welcome clarity" please?

    Then, in the pages of the website I write via the wordpress interface, the <p> tags don't seem to work as they should. All the text is in one block - uninspiring to be read - rather than having a line of space to break it down a bit and making it more pleasant to the eye.
    I honestly have no clue how to obtain this either, any help would be really appreciated.

    Thanks,
    Luca
    http://pedrazzi.eu/wp

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Any idea how to give a bigger size to that "Welcome clarity" please?

    .flex-caption h2 p {
     font-size: 100px;
    }

    Then, in the pages of the website

    Please link.

  3. elstellino
    Member
    Posted 1 year ago #

    Thanks Andrew, although 100px was a bit too much :D I guess it was meant to be a percentage value, in any case I did 18px (because I didn't manage to give the appropriate size using the tag <h4> and 100% on the CSS), now it's perfectly fine all across the website. But I understand that what I did can create potential future problems, right?

    Pages: all the other pages accessible from the menu, About, Fees, Contact

    here's the Fees' link for example:
    http://pedrazzi.eu/wp/fees/

    Thanks!
    Luca

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    But I understand that what I did can create potential future problems

    Not sure which problems you're referring to.

    For the paragraphs, try adding this general style;

    p {
     margin: 10px 0;
    }
  5. elstellino
    Member
    Posted 1 year ago #

    Not sure which problems you're referring to.

    Well, because if I have other h2 fonts in the website they would change the size to 18px as well, instead of the 24px specified in the style.css file, or not?

    For the paragraphs, try adding this general style;

    p {
     margin: 10px 0;
    }

    This worked a treat, thanks! Marked as solved already!

    One thing, Andrew: I then discovered how to remove the hyperlink behaviour on the three features at the bottom, but as it was an additional question in the thread I opened (me stoopid), I now don't know where to write about it.

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Well, because if I have other h2 fonts in the website they would change the size to 18px as well, instead of the 24px specified in the style.css file, or not?

    Only other <h2> tags that are inside an element with the class 'flex-caption' and that have a paragraph child element will be affected.
    The style .flex-caption h2 p is actually applying to a paragraph.

    I now don't know where to write about it.

    If it's another thread, write your solution there. If it's within this thread, write your solution here.

  7. elstellino
    Member
    Posted 1 year ago #

    Thanks, that explains it well.

    If it's another thread, write your solution there. If it's within this thread, write your solution here.

    Thanks, I will write about it later in the other thread, then.
    But it won't appear in searches, will it?

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    But it won't appear in searches, will it?

    All threads on WordPress.org are crawled by search engines. I'm not sure what you're asking.

  9. elstellino
    Member
    Posted 1 year ago #

    Sure they are, but we are also inserting tags. I guess I should add new ones, then, correct?
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic