• I cannot figure out how to control the font size and style of plain text within the sidebar template. I do have some knowledge of CSS, but this stylesheet is complex and very confusing. Immediately below my blue “Courtrecords” banner I want to get my link text starting with “Obtain full criminal records…” to appear in bigger font in Arial so that’s it readable. Right now it’s way too small.

    https://www.beyourowndetective.com/blog

    Fred

Viewing 5 replies - 1 through 5 (of 5 total)
  • I always thought this was an excellent resource to do some “style detective” work ??
    https://codex.www.ads-software.com/Finding_Your_CSS_Styles

    Locate sidebar.php or similar. Find the offending item – it is right down the bottom just before </ul>. Then add <li> right before it.

    Thread Starter netdetective

    (@netdetective)

    Add an extra unclosed
    li tag? sidebar.php contains 5 instances of
    li and /li. Shouldn’t the number of open and closing tags balance out even?

    I experimented with putting <p> </p>,
    and even div /div around my text but none of those worked.

    What makes WordPress themes’ style sheets so hard to decipher are multiple attributes for the same individual item, whereas in the css style sheet I use for my website, I use just one for each item.

    Thanks,
    Fred

    Thread Starter netdetective

    (@netdetective)

    Problem solved.
    https://codex.www.ads-software.com/Finding_Your_CSS_Styles helped me figure it out right away. Using
    <li class=”page_item”> did the trick.

    I am still however confused about something. Upon searching style.css, with a Ctrl F search, page_item could not be found. I have no idea where class=”page_item” is originating from. Is there a second style sheet I don’t know about?

    Thanks!

    Multiple rules per selector are a very common and perfectly correct use of CSS although it does take a bit of getting used to. (I have reorganised mine but that is another story.). For brevity I suggested adding an li which seems to have worked. It is not absolutely mandatory to use a closing li in XHTML 1.0 trans. (I think).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Controlling font size and style in Sidebar template?’ is closed to new replies.