• Resolved skipc

    (@skipc)


    newbie two questions:

    1. in blue-pix theme, where do i insert a span to style the blog title? tried header.php to no success. my span:

    “<span style=”color: #ccc;”>ordinary</span><span style=”color: #ffa800;”>images</span>”

    2. also, can the font size be designated in the span tag?

    TIA. best…skip

    https://ordinaryimages.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • What you have (in your posting) looks alright but the code that I see in your live blog is:

    <a href="https://ordinaryimages.com/" title="Home">ordinaryimages</a><br /><span id="span"></span></div>

    Which doesn’t look OK at all.
    Should be:

    <a href="<?php bloginfo('url')" title="Home"><span style="color: #ccc;">ordinary</span><span style="color: #ffa800;">images</span></a>

    Font size can also be set in <span> tags. But you should really be setting your styles in you style.css file. The following *should* work for you:

    style.css

    .grey{color:#ffa800;font-size:1em;}
    .orange{color:#ccc;font-size:1.5em;}

    header.php
    <a href="<?php bloginfo('url')" title="Home"><span class="grey">ordinary</span><span class="orange">images</span></a>

    NOTE: you will probably want to adjust the font sizes.

    It might be mentioned that you have 19 errors in you html alone. Please validate your code.

    Thread Starter skipc

    (@skipc)

    thanks!

    got it, the use of “&” in “black&white photography” in the edit line of the sidebar.php of this theme caused (12) errors. using “and” from now on! the remaining errors were mine ” ; ” missing to close &copy. i just put the theme up and hadn’t validated it yet.

    i was only curious about adding font-size: to a span best…skip

    Thread Starter skipc

    (@skipc)

    xhtml, css, validated! best…skip

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add span to blog title?’ is closed to new replies.